File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: "Alchemic Circle: Build RetroDECK Components"
33on :
44 push :
55 branches :
6- - cooker
6+ - cooker
7+ - main
78 pull_request :
89 types : [opened, synchronize, reopened]
910
@@ -180,6 +181,14 @@ jobs:
180181
181182 reuse=false
182183
184+ # Force rebuild on main branch
185+ if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
186+ echo "[INFO] main branch build: forcing rebuild"
187+ reuse=false
188+ echo "reuse=$reuse" >> $GITHUB_OUTPUT
189+ exit 0
190+ fi
191+
183192 # Honor global force-rebuild (env) or workflow input
184193 if [[ "${FORCE_REBUILD:-}" == "true" || "${FORCE_REBUILD_INPUT:-}" == "true" ]]; then
185194 echo "[INFO] Global force rebuild requested (env/input)"
@@ -325,6 +334,14 @@ jobs:
325334
326335 reuse=false
327336
337+ # Force rebuild on main branch
338+ if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
339+ echo "[INFO] main branch build: forcing rebuild"
340+ reuse=false
341+ echo "reuse=$reuse" >> $GITHUB_OUTPUT
342+ exit 0
343+ fi
344+
328345 # Honor global force-rebuild (env) or workflow input
329346 if [[ "${FORCE_REBUILD:-}" == "true" || "${FORCE_REBUILD_INPUT:-}" == "true" ]]; then
330347 echo "[INFO] Global force rebuild requested (env/input)"
You can’t perform that action at this time.
0 commit comments