Make WordPress Core

Changeset 62740


Ignore:
Timestamp:
07/14/2026 06:23:34 PM (4 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/slack-notifications.yml

    r62404 r62740  
    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:
Note: See TracChangeset for help on using the changeset viewer.