Skip to content

Commit

Permalink
Send slack notification if CI failed
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Aug 20, 2024
1 parent 1aa8170 commit 6e6fa3e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,13 @@ jobs:
- name: Run check:data test
run: .github/scripts/kava-localnet-ci/cli.sh
shell: bash
working-directory: ./rosetta-kava
working-directory: ./rosetta-kava

- name: Send slack notification if job failed
uses: slackapi/[email protected]
if: ${{ failure() }}
with:
channel-id: ${{ vars.SLACK_CHANNEL_ID }}
slack-message: "Rosetta-kava CI failed, details: https://github.com/Kava-Labs/rosetta-kava/actions/runs/${{github.run_id}}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ALERTS_BOT_TOKEN }}

0 comments on commit 6e6fa3e

Please sign in to comment.