Skip to content

Commit

Permalink
proof-runner-notification.yml: Slack notifications on failure, and we…
Browse files Browse the repository at this point in the history
…bhook URL
  • Loading branch information
F-WRunTime committed Aug 14, 2024
1 parent 1303233 commit 44da3fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/proof-runner-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ on:
jobs:
handle-proof-runner:
runs-on: ubuntu-latest
if: >-
github.event.state == 'error' ||
github.event.state == 'failure'
steps:
- name: Generate Slack Payload
run: |
echo '{"Check Status": "${{ github.event.state }}"}' > payload.json
echo '{
"Kontrol Status": "${{ github.event.state }}",
"CI Run Link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}' > payload.json
- name: Send Status Check to Slack
uses: slackapi/slack-github-action@v1.26.0
with:
payload-file-path: "./payload.json"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_KONTROL_WEBHOOK_URL }}

0 comments on commit 44da3fa

Please sign in to comment.