Skip to content

Commit

Permalink
[ci] fix some flow would still be allowed to run after being marked a…
Browse files Browse the repository at this point in the history
…s draft
  • Loading branch information
Clo91eaf committed Dec 5, 2024
1 parent 3336e85 commit 23bcbe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/t1rocket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ jobs:
report:
name: "Report T1Rocket VCS CI result"
# Don't run report when:
# - marked draft ( we don't need to run report for draft PR )
# - user cancel ( we don't need report at this case )
# - PR from outside repository ( we don't have permission to push commit into fork repository )
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository && !github.event.pull_request.draft }}
needs: [run-testcases]
runs-on: [self-hosted, linux, nixos]
permissions:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/vcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ jobs:
report:
name: "Report VCS CI result"
# Don't run report when:
# - marked draft ( we don't need to run report for draft PR )
# - user cancel ( we don't need report at this case )
# - PR from outside repository ( we don't have permission to push commit into fork repository )
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository && !github.event.pull_request.draft }}
needs: [run-testcases]
runs-on: [self-hosted, linux, nixos]
permissions:
Expand Down

0 comments on commit 23bcbe5

Please sign in to comment.