From 3c4d922bea8c3f6e65e412c151100d26cbf598f9 Mon Sep 17 00:00:00 2001 From: Jacek Date: Tue, 10 Mar 2026 10:32:54 -0500 Subject: [PATCH 1/3] ci: add Slack failure notifications to release workflow --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d32bb3d2500..6a5ac61c4ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,6 +125,26 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CHANGELOG_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + - name: Notify Slack on failure + if: failure() + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "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>" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SDK_SLACKER_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + canary-release: name: Canary release if: ${{ github.event_name == 'push' && github.repository == 'clerk/javascript' }} @@ -204,6 +224,26 @@ jobs: }) } + - name: Notify Slack on failure + if: failure() + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "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>" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SDK_SLACKER_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + snapshot-release: name: Snapshot release if: ${{ github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!snapshot') && github.repository == 'clerk/javascript' && github.event.issue.pull_request }} From 9af191d3a36c70e1c33d57c945fa81b6d7eacb36 Mon Sep 17 00:00:00 2001 From: Jacek Date: Thu, 12 Mar 2026 14:34:20 -0500 Subject: [PATCH 2/3] chore: add empty changeset --- .changeset/itchy-windows-bathe.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changeset/itchy-windows-bathe.md diff --git a/.changeset/itchy-windows-bathe.md b/.changeset/itchy-windows-bathe.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/itchy-windows-bathe.md @@ -0,0 +1,2 @@ +--- +--- From e5309035027cebbd717996a6cbc2eb7dba7c5725 Mon Sep 17 00:00:00 2001 From: Jacek Date: Thu, 12 Mar 2026 15:00:49 -0500 Subject: [PATCH 3/3] fix(repo): scope Slack failure notifications to release step outcomes --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a736c5dab2d..ed68f7eae79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,7 +130,7 @@ jobs: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - name: Notify Slack on failure - if: failure() + if: ${{ always() && steps.changesets.outcome == 'failure' }} uses: slackapi/slack-github-action@v1.24.0 with: payload: | @@ -235,7 +235,7 @@ jobs: await Promise.all(dispatches); - name: Notify Slack on failure - if: failure() + if: ${{ always() && steps.publish.outcome == 'failure' }} uses: slackapi/slack-github-action@v1.24.0 with: payload: |