Skip to content

Commit 3325e84

Browse files
tyler-daneclaude
andcommitted
fix(ci-cd): use PAT to push tag so publish-images.yml is triggered
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 08f8795 commit 3325e84

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/bump-and-tag.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Bump patch version and push tag
22+
env:
23+
GH_PAT: ${{ secrets.GH_PAT }}
2224
run: |
2325
LATEST=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
2426
[ -z "$LATEST" ] && LATEST="v0.0.0"
@@ -30,4 +32,6 @@ jobs:
3032
NEW_TAG="v${MAJOR}.${MINOR}.$((PATCH + 1))"
3133
echo "Bumping ${LATEST} → ${NEW_TAG}"
3234
git tag "$NEW_TAG"
33-
git push origin "$NEW_TAG"
35+
# Push with PAT so the tag event triggers publish-images.yml.
36+
# GITHUB_TOKEN pushes are intentionally blocked from triggering downstream workflows.
37+
git push "https://x-access-token:${GH_PAT}@github.com/${GITHUB_REPOSITORY}.git" "$NEW_TAG"

0 commit comments

Comments
 (0)