We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967a569 commit fb574efCopy full SHA for fb574ef
.github/workflows/release.yaml
@@ -75,12 +75,14 @@ jobs:
75
if: env.CREATE_TAG == 'True'
76
env:
77
VERSION: ${{ env.VERSION }}
78
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_PAT: ${{ secrets.GH_PAT }} # Use PAT secret
79
run: |
80
TAG="v$VERSION"
81
- echo "Creating Git tag $TAG"
+ echo "Creating Git tag $TAG using PAT"
82
git config user.name "github-actions"
83
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
86
git tag -a "$TAG" -m "Release $TAG"
87
git push origin "$TAG"
88
0 commit comments