diff --git a/.github/workflows/nightly-v4-integtest.yml b/.github/workflows/nightly-v4-integtest.yml index cc39dca2..4a0c7e04 100644 --- a/.github/workflows/nightly-v4-integtest.yml +++ b/.github/workflows/nightly-v4-integtest.yml @@ -115,9 +115,25 @@ jobs: # Variables used by the Slack workflow payload: | { - "workflow_name": "${{ github.workflow }}", - "workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "workflow_status": "${{ contains(join(needs.*.result, ' '), 'failure') && 'failure' || 'success' }}" + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "GitHub Actions Failure :x:", + "emoji": true + } + }, + {"type": "divider"}, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Workflow:* `${{ github.workflow }}` has failed. View the full output here: <${{ env.WORKFLOW_URL }}|GitHub Actions Run Output>" + } + } + ] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \ No newline at end of file diff --git a/.github/workflows/slack-webhook-payload.json b/.github/workflows/slack-webhook-payload.json new file mode 100644 index 00000000..baee7a24 --- /dev/null +++ b/.github/workflows/slack-webhook-payload.json @@ -0,0 +1,3 @@ +{ + "text": "A GitHub Action Event ${{ github.eventName }} has ${{ env.JOB_STATUS }}" +} \ No newline at end of file