Make WordPress Core

Changeset 59519


Ignore:
Timestamp:
12/16/2024 07:27:59 PM (7 months ago)
Author:
desrosj
Message:

Build/Test Tools: Update slackapi/slack-github-action.

This makes the necessary changes to update the Slack GitHub Action to the latest version, currently 2.0.0.

Most notably this update provides more control over how attempts re retried when rate limiting is encountered.

Reverts [59209].

See #61701, #62221.

File:
1 edited

Legend:

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

    r59209 r59519  
    162162    name: Failure notifications
    163163    runs-on: ubuntu-latest
    164     continue-on-error: true
    165     timeout-minutes: 5
     164    timeout-minutes: 10
    166165    needs: [ prepare ]
    167166    if: ${{ needs.prepare.outputs.previous_conclusion != 'first-failure' && inputs.calling_status == 'failure' || failure() }}
     
    169168    steps:
    170169      - name: Post failure notifications to Slack
    171         uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
    172         with:
    173           payload: ${{ needs.prepare.outputs.payload }}
    174         env:
    175           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     170        uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
     171        with:
     172          webhook-type: webhook-trigger
     173          webhook: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
     174          payload: ${{ needs.prepare.outputs.payload }}
    176175
    177176  # Posts notifications the first time a workflow run succeeds after previously failing.
     
    179178    name: Fixed notifications
    180179    runs-on: ubuntu-latest
    181     continue-on-error: true
    182     timeout-minutes: 5
     180    timeout-minutes: 10
    183181    needs: [ prepare ]
    184182    if: ${{ contains( fromJson( '["failure", "cancelled", "none"]' ), needs.prepare.outputs.previous_conclusion ) && inputs.calling_status == 'success' && success() }}
     
    186184    steps:
    187185      - name: Post failure notifications to Slack
    188         uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
    189         with:
    190           payload: ${{ needs.prepare.outputs.payload }}
    191         env:
    192           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     186        uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
     187        with:
     188          webhook-type: webhook-trigger
     189          webhook: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
     190          payload: ${{ needs.prepare.outputs.payload }}
    193191
    194192  # Posts notifications when a workflow is successful.
     
    196194    name: Success notifications
    197195    runs-on: ubuntu-latest
    198     continue-on-error: true
    199     timeout-minutes: 5
     196    timeout-minutes: 10
    200197    needs: [ prepare ]
    201198    if: ${{ inputs.calling_status == 'success' && success() }}
     
    203200    steps:
    204201      - name: Post success notifications to Slack
    205         uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
    206         with:
    207           payload: ${{ needs.prepare.outputs.payload }}
    208         env:
    209           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     202        uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
     203        with:
     204          webhook-type: webhook-trigger
     205          webhook: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
     206          payload: ${{ needs.prepare.outputs.payload }}
    210207
    211208  # Posts notifications when a workflow is cancelled.
     
    213210    name: Cancelled notifications
    214211    runs-on: ubuntu-latest
    215     continue-on-error: true
    216     timeout-minutes: 5
     212    timeout-minutes: 10
    217213    needs: [ prepare ]
    218214    if: ${{ inputs.calling_status == 'cancelled' || cancelled() }}
     
    220216    steps:
    221217      - name: Post cancelled notifications to Slack
    222         uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
    223         with:
    224           payload: ${{ needs.prepare.outputs.payload }}
    225         env:
    226           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     218        uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
     219        with:
     220          webhook-type: webhook-trigger
     221          webhook: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
     222          payload: ${{ needs.prepare.outputs.payload }}
Note: See TracChangeset for help on using the changeset viewer.