Skip to content

Commit

Permalink
Try fancier block kit text
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Sep 26, 2024
1 parent fb5bee0 commit a30c7ab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/nightly-v5-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,25 @@ jobs:
# For posting a rich message using Block Kit
payload: |
{
"text": "!!!GitHub Action Failure!!!",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": :rotating_light: "GitHub Action Failed: ${{ github.workflow }} :rotating_light:",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "The GitHub Action ${{ github.workflow }} has failed! For more information, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
"text": "The GitHub Action *${{ github.workflow }}* failed for commit `${{ github.sha }}` in repository *${{ github.repository }}*.\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View GitHub Actions output>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit a30c7ab

Please sign in to comment.