From aa37353e3d0f146410bbd27a64d1bb0958e1b1c7 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Mon, 20 Jul 2026 19:21:13 -0400 Subject: [PATCH] fix: explicitly dispatch release workflow after creating a tag Tags pushed with the default GITHUB_TOKEN don't trigger other workflows' push events, so release.yml never ran after tag.yml created a new tag. Add workflow_dispatch to release.yml and have tag.yml call `gh workflow run release.yml --ref ` right after pushing the tag. --- .github/workflows/release.yml | 1 + .github/workflows/tag.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19f5e27f..8feb555d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: # run only against tags tags: - '*' + workflow_dispatch: permissions: contents: write diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 69da6aa2..d9fcca83 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -15,6 +15,7 @@ on: permissions: contents: write + actions: write jobs: tag: @@ -43,5 +44,12 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git tag -a "${{ steps.semver.outputs.version }}" -m "Release ${{ steps.semver.outputs.version }}" git push origin "${{ steps.semver.outputs.version }}" + - name: Trigger release workflow + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ steps.semver.outputs.version }} + run: gh workflow run release.yml --ref "$TAG" - name: Summary - run: echo "Created tag ${{ steps.semver.outputs.version }}" >> "$GITHUB_STEP_SUMMARY" + env: + TAG: ${{ steps.semver.outputs.version }} + run: echo "Created tag $TAG" >> "$GITHUB_STEP_SUMMARY"