File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change @@ -129,6 +129,26 @@ jobs:
129129 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_CHANGELOG_WEBHOOK_URL }}
130130 SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
131131
132+ - name : Notify Slack on failure
133+ if : ${{ always() && steps.changesets.outcome == 'failure' }}
134+ uses : slackapi/slack-github-action@v1.24.0
135+ with :
136+ payload : |
137+ {
138+ "blocks": [
139+ {
140+ "type": "section",
141+ "text": {
142+ "type": "mrkdwn",
143+ "text": "*:red_circle: Stable release failed*\n*Repo:* `${{ github.repository }}`\n*Workflow:* `${{ github.workflow }}`\n*Commit:* `${{ github.sha }}`\n*Triggered by:* `${{ github.actor }}`\n*Run:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
144+ }
145+ }
146+ ]
147+ }
148+ env :
149+ SLACK_WEBHOOK_URL : ${{ secrets.SDK_SLACKER_WEBHOOK_URL }}
150+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
151+
132152 canary-release :
133153 name : Canary release
134154 if : ${{ github.event_name == 'push' && github.repository == 'clerk/javascript' }}
@@ -214,6 +234,26 @@ jobs:
214234
215235 await Promise.all(dispatches);
216236
237+ - name : Notify Slack on failure
238+ if : ${{ always() && steps.publish.outcome == 'failure' }}
239+ uses : slackapi/slack-github-action@v1.24.0
240+ with :
241+ payload : |
242+ {
243+ "blocks": [
244+ {
245+ "type": "section",
246+ "text": {
247+ "type": "mrkdwn",
248+ "text": "*:red_circle: Canary release failed*\n*Repo:* `${{ github.repository }}`\n*Workflow:* `${{ github.workflow }}`\n*Commit:* `${{ github.sha }}`\n*Triggered by:* `${{ github.actor }}`\n*Run:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
249+ }
250+ }
251+ ]
252+ }
253+ env :
254+ SLACK_WEBHOOK_URL : ${{ secrets.SDK_SLACKER_WEBHOOK_URL }}
255+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
256+
217257 snapshot-release :
218258 name : Snapshot release
219259 if : ${{ github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!snapshot') && github.repository == 'clerk/javascript' && github.event.issue.pull_request }}
You can’t perform that action at this time.
0 commit comments