File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ name: ci
2323# DOCKERHUB_IMAGE – (optional) image name, defaults to "stackresume"
2424# Secrets:
2525# DOCKERHUB_TOKEN – a Docker Hub access token with Read/Write/Delete
26+ # RELEASE_PAT – a fine-grained PAT (or classic PAT with `repo` scope)
27+ # used to push the auto-generated vX.Y.Z tag. Required
28+ # because GitHub deliberately suppresses workflow
29+ # triggers for pushes made with the default
30+ # GITHUB_TOKEN — without this, the tag-triggered
31+ # Docker build (vX.Y.Z / vX.Y / vX tags) never fires.
2632
2733on :
2834 push :
@@ -143,6 +149,7 @@ jobs:
143149 - uses : actions/checkout@v4
144150 with :
145151 fetch-depth : 0 # need full history to walk tags
152+ token : ${{ secrets.RELEASE_PAT }}
146153
147154 - name : Compute next semver
148155 id : version
@@ -199,7 +206,7 @@ jobs:
199206 - name : Push tag and create GitHub release
200207 if : steps.version.outputs.skip == 'false'
201208 env :
202- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
209+ GH_TOKEN : ${{ secrets.RELEASE_PAT }}
203210 NEW_TAG : ${{ steps.version.outputs.new_tag }}
204211 run : |
205212 git config user.name "github-actions[bot]"
You can’t perform that action at this time.
0 commit comments