Changeset 59519
- Timestamp:
- 12/16/2024 07:27:59 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/slack-notifications.yml
r59209 r59519 162 162 name: Failure notifications 163 163 runs-on: ubuntu-latest 164 continue-on-error: true 165 timeout-minutes: 5 164 timeout-minutes: 10 166 165 needs: [ prepare ] 167 166 if: ${{ needs.prepare.outputs.previous_conclusion != 'first-failure' && inputs.calling_status == 'failure' || failure() }} … … 169 168 steps: 170 169 - name: Post failure notifications to Slack 171 uses: slackapi/slack-github-action@ 37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0172 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 }} 176 175 177 176 # Posts notifications the first time a workflow run succeeds after previously failing. … … 179 178 name: Fixed notifications 180 179 runs-on: ubuntu-latest 181 continue-on-error: true 182 timeout-minutes: 5 180 timeout-minutes: 10 183 181 needs: [ prepare ] 184 182 if: ${{ contains( fromJson( '["failure", "cancelled", "none"]' ), needs.prepare.outputs.previous_conclusion ) && inputs.calling_status == 'success' && success() }} … … 186 184 steps: 187 185 - name: Post failure notifications to Slack 188 uses: slackapi/slack-github-action@ 37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0189 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 }} 193 191 194 192 # Posts notifications when a workflow is successful. … … 196 194 name: Success notifications 197 195 runs-on: ubuntu-latest 198 continue-on-error: true 199 timeout-minutes: 5 196 timeout-minutes: 10 200 197 needs: [ prepare ] 201 198 if: ${{ inputs.calling_status == 'success' && success() }} … … 203 200 steps: 204 201 - name: Post success notifications to Slack 205 uses: slackapi/slack-github-action@ 37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0206 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 }} 210 207 211 208 # Posts notifications when a workflow is cancelled. … … 213 210 name: Cancelled notifications 214 211 runs-on: ubuntu-latest 215 continue-on-error: true 216 timeout-minutes: 5 212 timeout-minutes: 10 217 213 needs: [ prepare ] 218 214 if: ${{ inputs.calling_status == 'cancelled' || cancelled() }} … … 220 216 steps: 221 217 - name: Post cancelled notifications to Slack 222 uses: slackapi/slack-github-action@ 37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0223 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.