Skip to content

Commit 765f2ed

Browse files
committed
use !cancelled()
1 parent a5a946d commit 765f2ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, synchronize, reopened, ready_for_review]
66

77
concurrency:
8-
group: pr-${{ github.event.pull_request.number }}
8+
group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
99
cancel-in-progress: true
1010

1111
permissions:
@@ -51,7 +51,7 @@ jobs:
5151
- contracts
5252
- lint-internal
5353
- lint-external
54-
if: ${{ always() }}
54+
if: ${{ !cancelled() }}
5555
outputs:
5656
run_tests: ${{ steps.decide.outputs.run_tests }}
5757

@@ -100,7 +100,7 @@ jobs:
100100
101101
test:
102102
needs: [prechecks-gate]
103-
if: ${{ always() && needs['prechecks-gate'].outputs.run_tests == 'true' }}
103+
if: ${{ !cancelled() && needs['prechecks-gate'].outputs.run_tests == 'true' }}
104104
uses: ./.github/workflows/_test.yml
105105
secrets:
106106
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)