Skip to content

Commit

Permalink
ci(gha): fix notifications on cancelled workflows (#13654)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan authored Feb 23, 2024
1 parent 82c7195 commit 43fc48e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,24 @@ jobs:
- windows-bazel
- windows-cmake
# Run even if the other jobs failed or were skipped.
if: ${{ contains(fromJSON('["schedule", "push", "workflow_dispatch"]'), github.event_name) }}
if: always()
runs-on: ubuntu-latest
steps:
- name: Notify Google Chat
shell: bash
run: |
event_name="${{ github.event_name }}"
case "${event_name}" in
schedule)
;;
push)
;;
workflow_dispatch)
;;
*)
exit 0
;;
esac
failure="${{ contains(needs.*.result, 'failure') }}"
cancelled="${{ contains(needs.*.result, 'cancelled') }}"
status=""
Expand Down

0 comments on commit 43fc48e

Please sign in to comment.