Skip to content

Commit 71fc029

Browse files
committed
fix: push release tags with configured token
1 parent 37f9eb3 commit 71fc029

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/tag-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
4848
- name: Create tag if missing
4949
env:
50+
PUSH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
5051
TARGET_SHA: ${{ github.event.inputs.sha || github.event.pull_request.merge_commit_sha || github.sha }}
5152
run: |
5253
tag="v${{ steps.version.outputs.version }}"
@@ -59,5 +60,6 @@ jobs:
5960
6061
git config user.name "github-actions[bot]"
6162
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
63+
git remote set-url origin "https://x-access-token:${PUSH_TOKEN}@github.com/${{ github.repository }}.git"
6264
git tag "$tag" "$TARGET_SHA"
6365
git push origin "$tag"

0 commit comments

Comments
 (0)