ci(split-packages): enable manual + chained runs; gate on success

- 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
This commit is contained in:
George Cushen committed 2025-09-07 01:13:21 +01:00
1 parent 540ba9c933
commit 61a67d7c5a
1 file changed
+9
+9
View File
@@ -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: