From f0c5e8e960c82d1830783271ca00116f9c6187a2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 18 Mar 2024 17:23:54 +0300 Subject: [PATCH] chore: reduce slack spam for manually run docs link checker workflows (#12630) --- .github/workflows/weekly-docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/weekly-docs.yaml b/.github/workflows/weekly-docs.yaml index eb4f87217a..9806564b67 100644 --- a/.github/workflows/weekly-docs.yaml +++ b/.github/workflows/weekly-docs.yaml @@ -24,7 +24,7 @@ jobs: file-path: "./README.md" - name: Send Slack notification - if: failure() + if: failure() && github.event_name != 'workflow_dispatch' 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"