From c10cf241af2b28de753d1c120f12f01c7c65c723 Mon Sep 17 00:00:00 2001 From: IISweetHeartII Date: Fri, 20 Feb 2026 01:19:14 +0900 Subject: [PATCH] fix: trigger publish workflow from auto-release via workflow_dispatch (#47) GITHUB_TOKEN events don't trigger other workflows (GitHub Actions limitation), but workflow_dispatch is an exception. Add a step to explicitly trigger publish.yml after creating the release, and add actions: write permission needed for gh workflow run. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/auto-release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 67fa8a2..6672a02 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -7,6 +7,7 @@ on: permissions: contents: write + actions: write jobs: auto-release: @@ -134,6 +135,14 @@ jobs: echo "Release ${VERSION} published successfully!" echo "https://github.com/${{ github.repository }}/releases/tag/${VERSION}" + - name: Trigger publish workflow + if: steps.check.outputs.exists == 'false' + env: + GH_TOKEN: ${{ github.token }} + run: | + gh workflow run publish.yml + echo "Publish workflow triggered" + - name: Skip (tag exists) if: steps.check.outputs.exists == 'true' run: echo "Tag ${{ steps.version.outputs.version }} already exists, skipping"