fix(ci): honour FORCE_REBUILD from both manual trigger forms #11

Merged
pat-s merged 1 commit from fix/force-rebuild-both-trigger-forms into main 2026-09-18 07:14:24 +00:00

2026-09-18

fix(ci): honour FORCE_REBUILD from both manual trigger forms
The escape hatch added in #9 only read a bare $FORCE_REBUILD, which covers
`crow pipeline start -p FORCE_REBUILD=1`, where the parameter is injected
into the step environment. It does not cover
`crow pipeline create --branch main --var FORCE_REBUILD=1`, which passes a
crow substitution variable instead.

Triggering a fresh run of main is a `create`, so the flag would have been
silently ignored in exactly the case it is needed, and the run would skip
every Alpine version it was meant to rebuild.

Read the substituted ${FORCE_REBUILD} into FORCE_REBUILD_VAR and accept
either source. Crow blanks an unsupplied substitution variable rather than
failing, as recorded in 8eacc0a, so a plain cron run still takes the dedup
path.
2026-09-18 09:08:54 +02:00