Commit fb8bddb
committed
Use !cancelled() in required-status-check
When the build is cancelled by concurrency (e.g. a 'test *' label
triggers a rebuild via rebuild-pull-request-on-label.yml), the
superseded run's required-status-check used to run with always() and
report failure (because needs.*.result was 'cancelled'). Branch
protection then showed the PR as red until the rebuild completed.
Switching to !cancelled() makes the superseded check-run be reported
as skipped instead, and branch protection resolves the same-named
check from the rebuild.1 parent 4d87435 commit fb8bddb
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
0 commit comments