From d466212f43a50141faf38cb9eb20b988e640e958 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 6 Jan 2026 20:46:01 +0000 Subject: [PATCH] ci: fix --- .github/workflows/release-package-splitter.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-package-splitter.yml b/.github/workflows/release-package-splitter.yml index eca0216c..784a704d 100644 --- a/.github/workflows/release-package-splitter.yml +++ b/.github/workflows/release-package-splitter.yml @@ -6,6 +6,12 @@ on: branches: - main workflow_dispatch: + inputs: + force_all: + description: "Force split/push of all template repos, even if no changes detected" + required: false + type: boolean + default: false # IMPORTANT: workflows below must match the upstream workflow's `name:` exactly workflow_run: workflows: @@ -51,6 +57,7 @@ jobs: id: set-matrix env: CHANGED_DIRS: ${{ steps.changed.outputs.dir_names || '' }} + FORCE_ALL: ${{ github.event.inputs.force_all || 'false' }} run: | # Define the full mapping declare -A STARTER_MAP=( @@ -84,6 +91,15 @@ jobs: echo "$JSON" } + # Manual override to force splitting all templates + if [ "$FORCE_ALL" = "true" ]; then + echo "Force mode enabled; splitting all templates" + FULL_MATRIX=$(build_full_matrix) + echo "matrix=$FULL_MATRIX" >> "$GITHUB_OUTPUT" + echo "has_changes=true" >> "$GITHUB_OUTPUT" + exit 0 + fi + # For non-push events, always use full matrix derived from the map above if [ "${{ github.event_name }}" != "push" ]; then echo "Using full matrix for ${{ github.event_name }} event"