Skip to content

Commit 6012a1b

Browse files
committed
fix: use PAT for tag push to trigger release workflow
v0.1.4 - GITHUB_TOKEN pushes don't trigger other workflows (GitHub limitation). Now uses HOMEBREW_TAP_TOKEN PAT for cross-workflow triggering.
1 parent 62142b8 commit 6012a1b

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
7272
- name: Create and push tag
7373
if: steps.check.outputs.exists == 'false'
74+
env:
75+
# Use PAT to push tag - GITHUB_TOKEN pushes don't trigger other workflows
76+
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
7477
run: |
7578
TAG="v${{ steps.version.outputs.version }}"
7679
NOTES_FILE="${{ steps.notes.outputs.notes_file }}"
@@ -81,8 +84,8 @@ jobs:
8184
# Create annotated tag with release notes
8285
git tag -a "$TAG" -F "$NOTES_FILE"
8386
84-
# Push tag to origin (triggers release workflow)
85-
git push origin "$TAG"
87+
# Push tag using PAT (triggers release workflow)
88+
git push "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git" "$TAG"
8689
8790
echo "✅ Created and pushed tag: $TAG"
8891
echo "🚀 Release workflow should start now"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.4] - 2026-02-07
9+
10+
### Fixed
11+
- Auto-tag workflow now uses PAT to push tags (fixes: tag pushes triggering release workflow)
12+
813
## [0.1.3] - 2026-02-07
914

1015
### Added
@@ -64,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6469
- UI rendering verification in Fizzy
6570
- Real-world usage (dogfooded on Fizzy Card #92)
6671

72+
[0.1.4]: https://github.com/zainfathoni/fizzy-md/releases/tag/v0.1.4
6773
[0.1.3]: https://github.com/zainfathoni/fizzy-md/releases/tag/v0.1.3
6874
[0.1.2]: https://github.com/zainfathoni/fizzy-md/releases/tag/v0.1.2
6975
[0.1.1]: https://github.com/zainfathoni/fizzy-md/releases/tag/v0.1.1

0 commit comments

Comments
 (0)