Skip to content

Commit 6718e5b

Browse files
committed
fix: correct environment variable usage for GH_PAT in version bump step
1 parent c44c921 commit 6718e5b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/auto-version-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
2121
- name: Bump patch version and create new tag
2222
id: bump_tag
23+
env:
24+
GH_PAT: ${{ secrets.GH_PAT }}
2325
run: |
2426
old_tag=$latest_tag
2527
base=${old_tag#v}
@@ -32,7 +34,7 @@ jobs:
3234
git config --global user.name "github-actions[bot]"
3335
git tag $new_tag
3436
git config --global --unset credential.helper || true
35-
git remote set-url origin https://x-access-token:${{ secrets.GH_PAT }}@github.com/libbierose/VofM.git
37+
git remote set-url origin https://x-access-token:$GH_PAT@github.com/libbierose/VofM.git
3638
git push origin $new_tag
3739
echo "new_tag=$new_tag" >> $GITHUB_ENV
3840

0 commit comments

Comments
 (0)