Skip to content

Commit e31e828

Browse files
committed
Change post job conditions
1 parent 2e2c60a commit e31e828

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/bench.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,8 @@ jobs:
167167
steps:
168168
- run: |
169169
echo "jobs info: ${{ toJSON(needs) }}"
170-
- if: needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_pr != 'true' && contains(needs.*.result, 'failure')
170+
- if: contains(needs.*.result, 'failure')
171171
run: exit 1
172+
- if: contains(needs.*.result, 'cancelled')
173+
name: cancelling
174+
uses: andymckay/[email protected]

.github/workflows/nix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,8 @@ jobs:
115115
steps:
116116
- run: |
117117
echo "jobs info: ${{ toJSON(needs) }}"
118-
- if: needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_pr != 'true' && contains(needs.*.result, 'failure')
118+
- if: contains(needs.*.result, 'failure')
119119
run: exit 1
120+
- if: contains(needs.*.result, 'cancelled')
121+
name: cancelling
122+
uses: andymckay/[email protected]

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,8 @@ jobs:
236236
steps:
237237
- run: |
238238
echo "jobs info: ${{ toJSON(needs) }}"
239-
- if: needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_pr != 'true' && contains(needs.*.result, 'failure')
239+
- if: contains(needs.*.result, 'failure')
240240
run: exit 1
241+
- if: contains(needs.*.result, 'cancelled')
242+
name: cancelling
243+
uses: andymckay/[email protected]

0 commit comments

Comments
 (0)