Skip to content

Commit d466212

Browse files
committed
ci: fix
1 parent 7f163e3 commit d466212

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-package-splitter.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
branches:
77
- main
88
workflow_dispatch:
9+
inputs:
10+
force_all:
11+
description: "Force split/push of all template repos, even if no changes detected"
12+
required: false
13+
type: boolean
14+
default: false
915
# IMPORTANT: workflows below must match the upstream workflow's `name:` exactly
1016
workflow_run:
1117
workflows:
@@ -51,6 +57,7 @@ jobs:
5157
id: set-matrix
5258
env:
5359
CHANGED_DIRS: ${{ steps.changed.outputs.dir_names || '' }}
60+
FORCE_ALL: ${{ github.event.inputs.force_all || 'false' }}
5461
run: |
5562
# Define the full mapping
5663
declare -A STARTER_MAP=(
@@ -84,6 +91,15 @@ jobs:
8491
echo "$JSON"
8592
}
8693
94+
# Manual override to force splitting all templates
95+
if [ "$FORCE_ALL" = "true" ]; then
96+
echo "Force mode enabled; splitting all templates"
97+
FULL_MATRIX=$(build_full_matrix)
98+
echo "matrix=$FULL_MATRIX" >> "$GITHUB_OUTPUT"
99+
echo "has_changes=true" >> "$GITHUB_OUTPUT"
100+
exit 0
101+
fi
102+
87103
# For non-push events, always use full matrix derived from the map above
88104
if [ "${{ github.event_name }}" != "push" ]; then
89105
echo "Using full matrix for ${{ github.event_name }} event"

0 commit comments

Comments
 (0)