Commit 89e54a8
fix: make instant-sync succeed when FARM_DISPATCH_TOKEN is absent
Move the secret check from a job-level `if:` condition (which GitHub
marks as a workflow failure when the secret is empty) into a step-level
check that outputs a flag. The dispatch and confirm steps are gated
behind the flag so the workflow succeeds as a no-op when the token is
not configured — mirror.yml handles direct SSH mirroring independently.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 19ba29d commit 89e54a8
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
18 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
19 | 32 | | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
| |||
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| 48 | + | |
34 | 49 | | |
0 commit comments