Skip to content

Commit a833ca0

Browse files
committed
Build/Test Tools: Limit cancelled Slack notifications.
When a worfklow run in GitHub Actions reaches the configured timeout value, the workflow is considered cancelled. Since there is an automatic re-run mechanism built into the project’s workflows, it’s not necessary to post a message in Slack that the first run has been cancelled. This adjusts the conditional checks controlling the cancelled notices so only the second run attempt results in a Slack notification. See #64893. git-svn-id: https://develop.svn.wordpress.org/trunk@62740 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4021456 commit a833ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/slack-notifications.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
runs-on: ubuntu-24.04
219219
timeout-minutes: 20
220220
needs: [ prepare ]
221-
if: ${{ inputs.calling_status == 'cancelled' || cancelled() }}
221+
if: ${{ inputs.calling_status == 'cancelled' && github.run_attempt == 2 || cancelled() }}
222222

223223
steps:
224224
- name: Post cancelled notifications to Slack

0 commit comments

Comments
 (0)