Commit f5c517a
committed
Fix create-release job condition to properly handle skipped publish jobs
The previous condition had two issues:
1. `always()` was incorrectly placed after the changes_made check, making it ineffective
2. The condition was overly verbose with explicit OR checks for all combinations
This fix:
- Moves `always()` to the beginning so the condition evaluates even when publish jobs are skipped
- Simplifies the logic to check if at least one publish job succeeded
- Adds documentation explaining why always() is needed
Without `always()` at the start, the job would never run when dependencies are skipped,
and the result checks would never be evaluated.1 parent e545918 commit f5c517a
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
0 commit comments