From aa1cd5d3d104b4c8fe1991efca13974feff961ef Mon Sep 17 00:00:00 2001 From: IISweetHeartII Date: Fri, 20 Feb 2026 01:19:20 +0900 Subject: [PATCH] fix: trigger publish workflow from auto-release via workflow_dispatch (#21) GITHUB_TOKEN events don't trigger other workflows, but workflow_dispatch is an exception. Add workflow_dispatch trigger to publish.yml and a step in auto-release.yml to invoke it after creating a release. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/auto-release.yml | 7 +++++++ .github/workflows/publish.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index f5c3382..ed2ff4f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -34,3 +34,10 @@ jobs: tag_name: v${{ steps.version.outputs.version }} name: v${{ steps.version.outputs.version }} generate_release_notes: true + - name: Trigger publish workflow + if: steps.check_tag.outputs.exists == 'false' + env: + GH_TOKEN: ${{ github.token }} + run: | + gh workflow run publish.yml + echo "✅ Publish workflow triggered" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5b508bf..ad7b7c0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,7 @@ name: Publish to PyPI on: release: types: [published] + workflow_dispatch: permissions: id-token: write