Skip to content

Commit fb574ef

Browse files
committed
configuring workflows more
1 parent 967a569 commit fb574ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ jobs:
7575
if: env.CREATE_TAG == 'True'
7676
env:
7777
VERSION: ${{ env.VERSION }}
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
GH_PAT: ${{ secrets.GH_PAT }} # Use PAT secret
7979
run: |
8080
TAG="v$VERSION"
81-
echo "Creating Git tag $TAG"
81+
echo "Creating Git tag $TAG using PAT"
8282
git config user.name "github-actions"
8383
git config user.email "actions@github.com"
84+
# use PAT for pushing
85+
git remote set-url origin https://x-access-token:${GH_PAT}@github.com/${{ github.repository }}.git
8486
git tag -a "$TAG" -m "Release $TAG"
8587
git push origin "$TAG"
8688

0 commit comments

Comments
 (0)