Skip to content

Commit

Permalink
Added Slack notificatino on job fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Oct 30, 2024
1 parent 8834535 commit c2a0842
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/playground-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ jobs:
with:
name: logs.tgz
path: ./logs.tgz

- name: Slack notification on failure
if: failure()
id: slack
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{"job_link":"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PLAYGROUND_CI_WEBHOOK_URL }}

0 comments on commit c2a0842

Please sign in to comment.