From 540d49282544bdf8c912097c50aa6400b84a7ceb Mon Sep 17 00:00:00 2001 From: Oriol Date: Thu, 13 Jun 2024 12:03:05 +0200 Subject: [PATCH] chore: Send Slack runs on schedule or if `inputs.send_notification` is `true` (#2342) * job runs on schedule or if inputs.send_notification is true * use github.event so it's converted to string --- .github/workflows/test-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index e2b1275232..7a7bf651c1 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -81,7 +81,7 @@ jobs: slack-notification: needs: [tests, clean-after] - if: ${{ !cancelled() && needs.tests.result == 'failure' && (inputs.send_notification == true || inputs.send_notification == 'true') }} + if: ${{ !cancelled() && needs.tests.result == 'failure' && !contains(github.event.inputs.send_notification, 'false') }} runs-on: ubuntu-latest permissions: {} steps: