From 61a67d7c5a85c4c4372b9288101172de48ec0f4e Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 7 Sep 2025 01:13:21 +0100 Subject: [PATCH] ci(split-packages): enable manual + chained runs; gate on success MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add workflow_dispatch to run splitter from the UI - add workflow_run to follow “Release HugoBlox Modules” completion - guard job to run only when upstream conclusion == success - add comment: upstream workflow `name:` must match exactly - retain push trigger on main --- .github/workflows/split-packages.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/split-packages.yaml b/.github/workflows/split-packages.yaml index 87e4717a..8a7475ee 100644 --- a/.github/workflows/split-packages.yaml +++ b/.github/workflows/split-packages.yaml @@ -4,12 +4,21 @@ on: push: branches: - main + workflow_dispatch: + # IMPORTANT: workflows below must match the upstream workflow's `name:` exactly + workflow_run: + workflows: + - Release HugoBlox Modules + types: + - completed env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} jobs: packages_split: + # Run normally for push/workflow_dispatch; for workflow_run only run on success + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest strategy: