There was an error while loading. Please reload this page.
1 parent 08f8795 commit 3325e84Copy full SHA for 3325e84
1 file changed
.github/workflows/bump-and-tag.yml
@@ -19,6 +19,8 @@ jobs:
19
fetch-depth: 0
20
21
- name: Bump patch version and push tag
22
+ env:
23
+ GH_PAT: ${{ secrets.GH_PAT }}
24
run: |
25
LATEST=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
26
[ -z "$LATEST" ] && LATEST="v0.0.0"
@@ -30,4 +32,6 @@ jobs:
30
32
NEW_TAG="v${MAJOR}.${MINOR}.$((PATCH + 1))"
31
33
echo "Bumping ${LATEST} → ${NEW_TAG}"
34
git tag "$NEW_TAG"
- 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