Skip to content

Commit 40f4ad1

Browse files
fix(ci): Trigger build workflow after creating tag
GITHUB_TOKEN pushes don't trigger other workflows by default. Use gh CLI to explicitly trigger build-release.yml with version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 71bb8a5 commit 40f4ad1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ jobs:
6363
git tag v${{ steps.version.outputs.NEXT }}
6464
git push origin v${{ steps.version.outputs.NEXT }}
6565
66+
- name: Trigger Build workflow
67+
env:
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
run: |
70+
# Wait for tag to be recognized
71+
sleep 5
72+
# Trigger build-release workflow with version override
73+
gh workflow run build-release.yml \
74+
--ref v${{ steps.version.outputs.NEXT }} \
75+
-f version_override=${{ steps.version.outputs.NEXT }}
76+
6677
- name: Summary
6778
run: |
6879
echo "### Release Created" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)