Skip to content

Commit

Permalink
report error to slack when running e2e on nightly
Browse files Browse the repository at this point in the history
nightly would not get reported the GitHub.event_name condition is not
working so changing the condition to use the ref_name which is
documented in :

https://github.com/ravsamhq/notify-slack-action
  • Loading branch information
chmouel committed Mar 28, 2024
1 parent e553256 commit c684849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/kind-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
path: /tmp/logs

- name: Report Status
if: github.event_name != 'pull_request'
if: ${{ always() && github.ref_name == 'main' }}
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
Expand Down

0 comments on commit c684849

Please sign in to comment.