diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index dd73fc23c5..e38416eb10 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -203,6 +203,5 @@ jobs: echo "jobs info: ${{ toJSON(needs) }}" - if: contains(needs.*.result, 'failure') run: exit 1 - - if: contains(needs.*.result, 'cancelled') - name: cancelling - uses: andymckay/cancel-action@0.2 + - if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true' + run: exit 1 diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 09d297d3a9..f6f05afc15 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -114,6 +114,5 @@ jobs: echo "jobs info: ${{ toJSON(needs) }}" - if: contains(needs.*.result, 'failure') run: exit 1 - - if: contains(needs.*.result, 'cancelled') - name: cancelling - uses: andymckay/cancel-action@0.2 + - if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true' + run: exit 1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb6384b51b..78658238bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -261,6 +261,5 @@ jobs: echo "jobs info: ${{ toJSON(needs) }}" - if: contains(needs.*.result, 'failure') run: exit 1 - - if: contains(needs.*.result, 'cancelled') - name: cancelling - uses: andymckay/cancel-action@0.2 + - if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true' + run: exit 1