Repository navigation
Commit 419db92
authored
ci: fail the Branch protection check when a job it waits on does not succeed (#3840)
The job is main's required status check. Without an if: it was skipped
whenever test, contribute, browser or firebase-13 failed, and GitHub
counts a skipped required check as satisfied, so a pull request with red
tests stayed mergeable. Now the job always runs and exits 1 unless every
needed job succeeded. skipped is included because a failed build skips
three of the four jobs rather than failing them, and always() rather than
!cancelled() because a cancelled run must also leave the check red.
Found by Tyler Reitz on #3762.1 parent 916435a commit 419db92
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
0 commit comments