Skip to content

Commit

Permalink
Add payload data to Slack when build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 committed Nov 22, 2022
1 parent a3461b9 commit cb8340b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dockercompose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@ jobs:
id: slack
if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"title": "Building NAV's Docker Compose dev environment failed",
"github_ref_name": "${{ github.ref_name }}",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit cb8340b

Please sign in to comment.