Skip to content

Commit

Permalink
update: use slack-github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFlag committed Nov 4, 2024
1 parent d47501f commit f5d75ed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ jobs:
make check-links
- name: Ping on Slack
uses: ravsamhq/notify-slack-action@2.3.0
if: ${{ always() && github.ref_name == 'main' }}
uses: slackapi/slack-github-action@v1.27.0
if: ${{ failure() && github.ref_name == 'main' }}
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "{run_url}"
payload: |
{
"runId": "${{GITHUB_RUN_ID}}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_BROKEN_LINKS }}

0 comments on commit f5d75ed

Please sign in to comment.