Skip to content

Commit 5283a8a

Browse files
committed
Handle cancellations properly.
1 parent 04995db commit 5283a8a

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/.notify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
jobs:
1717
notify_slack:
18+
if: ${{ inputs.job_result != 'cancelled' }}
1819
runs-on: ubuntu-latest
1920
env:
2021
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
job_result: ${{ needs.Fuzzing.result }}
3333
secrets:
3434
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
35-
if: ${{ always() }}
35+
if: ${{ always() && !cancelled() }}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686
job_result: ${{ needs.build.result }}
8787
secrets:
8888
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
89-
if: ${{ always() }}
89+
if: ${{ always() && !cancelled() }}

.github/workflows/multiarch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ jobs:
7878
job_result: ${{ needs.build_multiarch.result }}
7979
secrets:
8080
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
81-
if: ${{ always() }}
81+
if: ${{ always() && !cancelled() }}

.github/workflows/rtp.io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ jobs:
139139
job_result: ${{ needs.build_test_rtp_io_dock.result }}
140140
secrets:
141141
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
142-
if: ${{ always() }}
142+
if: ${{ always() && !cancelled() }}

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ jobs:
127127
job_result: ${{ needs.build_and_test.result }}
128128
secrets:
129129
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
130-
if: ${{ always() }}
130+
if: ${{ always() && !cancelled() }}

0 commit comments

Comments
 (0)