Skip to content

Commit fa36213

Browse files
committed
ci(repo): use slackapi/slack-github-action to match PR #8023 pattern
1 parent 46fd517 commit fa36213

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/e2e-staging.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,25 @@ jobs:
172172
echo "notify-slack=${NOTIFY_SLACK:-true}" >> $GITHUB_OUTPUT
173173
fi
174174
175-
- name: Report to Slack
175+
- name: Notify Slack on failure
176176
if: ${{ needs.integration-tests.result == 'failure' && steps.inputs.outputs.notify-slack == 'true' }}
177-
uses: ravsamhq/notify-slack-action@v1
177+
uses: slackapi/slack-github-action@v1.24.0
178178
with:
179-
status: failure
180-
notify_when: "failure"
181-
notification_title: "Staging E2E Failure"
182-
message_format: |
183-
*Staging E2E tests failed*
184-
*Ref:* ${{ steps.inputs.outputs.ref }}
185-
*clerk_go commit:* ${{ steps.inputs.outputs.clerk-go-commit-sha || 'N/A' }}
186-
*Run:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
179+
payload: |
180+
{
181+
"blocks": [
182+
{
183+
"type": "section",
184+
"text": {
185+
"type": "mrkdwn",
186+
"text": "*:red_circle: Staging E2E tests failed*\n*Repo:* `${{ github.repository }}`\n*Ref:* `${{ steps.inputs.outputs.ref }}`\n*clerk_go commit:* `${{ steps.inputs.outputs.clerk-go-commit-sha || 'N/A' }}`\n*Run:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
187+
}
188+
}
189+
]
190+
}
187191
env:
188-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SDK_E2E_ALERTS_WEBHOOK_URL }}
192+
SLACK_WEBHOOK_URL: ${{ secrets.SDK_SLACKER_WEBHOOK_URL }}
193+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
189194

190195
# Uncomment when clerk_go side is ready
191196
# - name: Post commit status to clerk_go

0 commit comments

Comments
 (0)