Commit 4966505
committed
Fix deploy.yml: skip build when nightly cron fails
The workflow_run trigger fires on both 'success' and 'failure' conclusions.
Without a guard, every failed cron run wastes a full CI build + deploy cycle.
Added an `if` condition to the build job:
- push / workflow_dispatch events → always deploy
- workflow_run (cron) events → only deploy when conclusion == 'success'
This replaces the stale commented-out condition that referenced the
old pull_request trigger (removed in a prior commit).
https://claude.ai/code/session_01YafYX7riVJoSoZxYm913F61 parent 8a93a28 commit 4966505
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments