From 092df80acbdb51f9801a916a0102866b37affb84 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 21 Jan 2026 16:02:06 -0600 Subject: [PATCH] feat(ci): add workflow_dispatch trigger to split workflow Allow manual triggering of the monorepo split workflow via GitHub Actions UI. When triggered manually, the workflow fetches the latest tag using `git describe --tags --abbrev=0` instead of relying on `github.ref_name`. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/split.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 9b9ac2e..625d449 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -9,6 +9,7 @@ name: Split Monorepo # The default GITHUB_TOKEN cannot push to other repositories. on: + workflow_dispatch: push: tags: - '*' @@ -46,6 +47,17 @@ jobs: with: fetch-depth: 0 + - name: Determine tag + id: tag + run: | + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + TAG=$(git describe --tags --abbrev=0) + else + TAG="${{ github.ref_name }}" + fi + echo "name=$TAG" >> $GITHUB_OUTPUT + echo "Using tag: $TAG" + - name: Split ${{ matrix.package.split_repository }} uses: symplify/monorepo-split-github-action@v2.3.0 with: @@ -54,7 +66,7 @@ jobs: repository_name: ${{ matrix.package.split_repository }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - tag: ${{ github.ref_name }} + tag: ${{ steps.tag.outputs.name }} branch: 'master' env: GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}