@@ -161,66 +161,62 @@ jobs:
161161 failure :
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() }}
168167
169168 steps :
170169 - name : Post failure notifications to Slack
171- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
170+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
172171 with :
172+ webhook-type : webhook-trigger
173+ webhook : ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
173174 payload : ${{ needs.prepare.outputs.payload }}
174- env :
175- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
176175
177176 # Posts notifications the first time a workflow run succeeds after previously failing.
178177 fixed :
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() }}
185183
186184 steps :
187185 - name : Post failure notifications to Slack
188- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
186+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
189187 with :
188+ webhook-type : webhook-trigger
189+ webhook : ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
190190 payload : ${{ needs.prepare.outputs.payload }}
191- env :
192- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
193191
194192 # Posts notifications when a workflow is successful.
195193 success :
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() }}
202199
203200 steps :
204201 - name : Post success notifications to Slack
205- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
202+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
206203 with :
204+ webhook-type : webhook-trigger
205+ webhook : ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
207206 payload : ${{ needs.prepare.outputs.payload }}
208- env :
209- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
210207
211208 # Posts notifications when a workflow is cancelled.
212209 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() }}
219215
220216 steps :
221217 - name : Post cancelled notifications to Slack
222- uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27 .0
218+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
223219 with :
220+ webhook-type : webhook-trigger
221+ webhook : ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
224222 payload : ${{ needs.prepare.outputs.payload }}
225- env :
226- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
0 commit comments