File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Code owners for FreshLogger
2+ # This file defines who is responsible for code in this repository
3+
4+ # Global code owner - Ömer Bulut
5+ * @ omerrbbulut
6+
7+ # Specific file ownership (if needed)
8+ # src/ @omerrbbulut
9+ # tests/ @omerrbbulut
10+ # docs/ @omerrbbulut
Original file line number Diff line number Diff line change 88 release :
99 types : [ published ]
1010
11+ # Add permissions for the workflow
12+ permissions :
13+ contents : write
14+ pull-requests : write
15+
1116jobs :
1217 test :
1318 runs-on : ubuntu-latest
1924
2025 steps :
2126 - uses : actions/checkout@v4
27+ with :
28+ token : ${{ secrets.GITHUB_TOKEN }}
2229
2330 - name : Setup C++ Environment
2431 run : |
@@ -126,12 +133,11 @@ jobs:
126133 sed -i "s/Version:.*[0-9]\+\.[0-9]\+\.[0-9]\+/Version: $NEW_VERSION/" Logger.hpp
127134 echo "✅ Version updated to $NEW_VERSION"
128135
129- # Commit and push with PAT token
136+ # Commit and push with GITHUB_TOKEN
130137 git config --local user.email "action@github.com"
131138 git config --local user.name "GitHub Action"
132139 git add Logger.hpp
133140 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
135141 git push origin main
136142
137143 echo "🚀 Version $NEW_VERSION pushed to main"
You can’t perform that action at this time.
0 commit comments