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) }});