Skip to content

Commit aa1cd5d

Browse files
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) <noreply@anthropic.com>
1 parent 39792b8 commit aa1cd5d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ jobs:
3434
tag_name: v${{ steps.version.outputs.version }}
3535
name: v${{ steps.version.outputs.version }}
3636
generate_release_notes: true
37+
- name: Trigger publish workflow
38+
if: steps.check_tag.outputs.exists == 'false'
39+
env:
40+
GH_TOKEN: ${{ github.token }}
41+
run: |
42+
gh workflow run publish.yml
43+
echo "✅ Publish workflow triggered"

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish to PyPI
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
id-token: write

0 commit comments

Comments
 (0)