Skip to content

Commit 75d1b80

Browse files
fix: add git credentials for tag push in release workflow (#217)
1 parent 73bc940 commit 75d1b80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ jobs:
185185

186186
- name: Push tag
187187
if: inputs.dev == false
188+
env:
189+
REPO: ${{ github.repository }}
188190
run: |
191+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${REPO}"
189192
git pull
190193
git tag "$TAG_NAME"
191194
git push --tags

0 commit comments

Comments
 (0)