Skip to content

Commit

Permalink
chore: Send Slack runs on schedule or if inputs.send_notification i…
Browse files Browse the repository at this point in the history
…s `true` (#2342)

* job runs on schedule or if inputs.send_notification is true

* use github.event so it's converted to string
  • Loading branch information
oarbusi authored Jun 13, 2024
1 parent 2aa3d84 commit 540d492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 540d492

Please sign in to comment.