Skip to content

Commit 3a73100

Browse files
author
Omer Bulut
committed
fix: use PAT_TOKEN for auto-versioning push access
1 parent de34961 commit 3a73100

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,12 @@ jobs:
126126
sed -i "s/Version:.*[0-9]\+\.[0-9]\+\.[0-9]\+/Version: $NEW_VERSION/" Logger.hpp
127127
echo "✅ Version updated to $NEW_VERSION"
128128
129-
# Commit and push
129+
# Commit and push with PAT token
130130
git config --local user.email "action@github.com"
131131
git config --local user.name "GitHub Action"
132132
git add Logger.hpp
133133
git commit -m "chore: auto-bump version to $NEW_VERSION [skip ci]"
134+
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/omerrbbulut/FreshLogger.git
134135
git push origin main
135136
136137
echo "🚀 Version $NEW_VERSION pushed to main"

0 commit comments

Comments
 (0)