Skip to content

Commit a030930

Browse files
committed
refactor: trigger CI failure notifier on all pull requests and move failure check to step level
1 parent 9c83077 commit a030930

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci-failure-notifier.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ permissions:
1212

1313
jobs:
1414
notify-ci-failure:
15-
# Only act when CI failed and was triggered by a pull_request event
16-
if: >
17-
github.event.workflow_run.conclusion == 'failure' &&
18-
github.event.workflow_run.event == 'pull_request'
15+
# Act when CI completes and was triggered by a pull_request event
16+
if: github.event.workflow_run.event == 'pull_request'
1917
runs-on: ubuntu-latest
2018
steps:
2119
- name: Add label and comment on failing PR
20+
if: github.event.workflow_run.conclusion == 'failure'
2221
uses: actions/github-script@v7
2322
with:
2423
script: |

0 commit comments

Comments
 (0)