Commit 82c1267
authored
Fix test-result job to run even when dependencies are skipped (#4096)
## Why
The test-result job would be skipped if any of its dependencies were
skipped, which incorrectly blocked the merge queue. Now it uses `if:
always()` to ensure it runs regardless of dependency status, and checks
`contains(needs.*.result, 'failure')` to fail only if any dependency
actually failed.
References:
- https://github.com/orgs/community/discussions/25970
- https://github.com/orgs/community/discussions/25789
## Tests
On this Pr, the test-result job succeeds even though most of the builds
were skipped.
The same job was skipped on the PR that added it.1 parent 5b33202 commit 82c1267
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
| |||
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| 290 | + | |
284 | 291 | | |
285 | 292 | | |
286 | 293 | | |
287 | 294 | | |
288 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| |||
0 commit comments