Skip to content

Commit

Permalink
Add Slack notification.
Browse files Browse the repository at this point in the history
Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst committed Oct 1, 2024
1 parent f349787 commit d5f0020
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,20 @@
uses: ConsenSys/docs-gha/linkcheck@main
with:
FILE_EXTENSION: md
MODIFIED_FILES_ONLY: no
MODIFIED_FILES_ONLY: no

slackNotification:
needs: [linkCheckMdx, linkCheckMd]
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: slackapi/slack-github-action@2a8087d4af6f83146a87539a70defe909fe6dbe6
with:
payload: |
{
"channel": "#doc-ci-alerts",
"text": "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }} workflow failed> on ${{ github.ref }} branch in the ${{ github.repository }} repository!"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit d5f0020

Please sign in to comment.