From da7eab41d5c2e3c5bed02a1966d563f74b104ea7 Mon Sep 17 00:00:00 2001 From: zeme-wana <15709674+zeme-wana@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:14:30 +0200 Subject: [PATCH] Don't run message broker on draft PRs (#6586) --- .github/workflows/slack-message-broker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/slack-message-broker.yml b/.github/workflows/slack-message-broker.yml index 6cf8917b3fd..f80be8d8185 100644 --- a/.github/workflows/slack-message-broker.yml +++ b/.github/workflows/slack-message-broker.yml @@ -26,6 +26,9 @@ jobs: - name: Prepare Slack Message uses: actions/github-script@main id: prepare-slack-message + if: > + (github.event_name == 'workflow_run' && !github.event.workflow_run.pull_requests[0].draft) || + (github.event_name == 'check_run' && !github.event.check_run.check_suite.pull_requests[0].draft) with: script: | console.log(${{ toJson(github.event) }});