Commit bdd261b
fix(ci): drop secret-context if:, let script own the missing-token error
The previous workflow used ``if: ${{ secrets.WIKI_SYNC_TOKEN == '' }}``
to fail fast before running the sync script. GitHub rejected the
workflow at YAML-validation time (0 jobs executed, the run went
straight to ``failure`` before any step scheduled), likely because
secret-context references inside ``if:`` can trip startup validation
when the referenced secret isn't configured.
Simpler: just let sync-wiki.sh detect the empty env var and exit 1
with its own "No token in env" message. Same UX, one fewer
YAML construct to fight.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b1954b6 commit bdd261b
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 51 | | |
58 | 52 | | |
| 53 | + | |
| 54 | + | |
59 | 55 | | |
60 | 56 | | |
0 commit comments