From 4618c4d0237c41e74c2072849028c2b2f016a53f Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Tue, 29 Aug 2023 16:32:36 +0800 Subject: [PATCH] chore(cd): skip send slack message for daily build failure (#11466) Github doesn't treat the author of commit as actor to scheduled workflow run, so sending slack message doesn't make sense. --- .github/workflows/release-and-tests-fail-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-and-tests-fail-bot.yml b/.github/workflows/release-and-tests-fail-bot.yml index 9b285b2a54de..1f590dc606b2 100644 --- a/.github/workflows/release-and-tests-fail-bot.yml +++ b/.github/workflows/release-and-tests-fail-bot.yml @@ -13,7 +13,7 @@ on: jobs: notify_failure: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} + if: ${{ github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.event != "schedule" }} steps: - name: Generate Slack Payload id: generate-payload