From 6303b559b4c6e29b4e4d2ab62b5cf02f9d3359a0 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 22 Jan 2024 17:41:21 +0100 Subject: [PATCH] chore: slack for broken links (#19156) --- .github/workflows/md-link-checker.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/md-link-checker.yml b/.github/workflows/md-link-checker.yml index 38560ea8c8..416536dae6 100644 --- a/.github/workflows/md-link-checker.yml +++ b/.github/workflows/md-link-checker.yml @@ -13,3 +13,19 @@ jobs: with: folder-path: "docs" - run: cd docs && sh ./post.sh + sims-notify-failure: + permissions: + contents: none + runs-on: ubuntu-latest + if: ${{ failure() }} + steps: + - name: Notify Slack on failure + uses: rtCamp/action-slack-notify@v2.2.1 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_CHANNEL: sdk-sims + SLACK_USERNAME: Broken Links + SLACK_ICON_EMOJI: ":skull:" + SLACK_COLOR: danger + SLACK_MESSAGE: Links are broken in docs + SLACK_FOOTER: ""