From 6c5d5e92588f97971a97e40a5d7218f9c4d2a24f Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Apr 2023 13:26:55 +0300 Subject: [PATCH 1/2] rename and run slack step on failure --- .github/workflows/cron-weekly.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cron-weekly.yaml b/.github/workflows/cron-weekly.yaml index cd838ceebf16a..704224210a2a3 100644 --- a/.github/workflows/cron-weekly.yaml +++ b/.github/workflows/cron-weekly.yaml @@ -1,4 +1,4 @@ -name: Markdown Links Check +name: Weekly Cron # runs every monday at 9 am on: schedule: @@ -23,6 +23,7 @@ jobs: folder-path: "docs/" - name: Send Slack notification + if: failure() run: | curl -X POST -H 'Content-type: application/json' -d '{"msg":"Broken links found in the documentation. Please check the logs at ${{ env.LOGS_URL }}"}' ${{ secrets.DOCS_LINK_SLACK_WEBHOOK }} echo "Sent Slack notification" From df65c1293e2f5afc6aa4309e977aa9cac9674b74 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 11 Apr 2023 13:37:02 +0300 Subject: [PATCH 2/2] add exceptions --- .github/workflows/cron-weekly.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cron-weekly.yaml b/.github/workflows/cron-weekly.yaml index 704224210a2a3..284257db0c065 100644 --- a/.github/workflows/cron-weekly.yaml +++ b/.github/workflows/cron-weekly.yaml @@ -19,7 +19,7 @@ jobs: with: use-quiet-mode: "yes" use-verbose-mode: "yes" - config-file: ".github/workflows/markdown.links.config.json" + config-file: ".github/workflows/mlc_config.json" folder-path: "docs/" - name: Send Slack notification