Skip to content

Commit a9e48d2

Browse files
authored
Update update_version.yml
1 parent cf0239d commit a9e48d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/update_version.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GH_PAT }}
1015

1116
- name: Generate version
1217
run: |
1318
echo "v$(date +'%Y.%m.%d-%H%M')-g$(git rev-parse --short HEAD)" > VERSION.txt
1419
15-
- name: Commit version file
20+
- name: Commit and push version file
1621
run: |
1722
git config user.name "github-actions"
1823
git config user.email "[email protected]"
1924
git add VERSION.txt
20-
git commit -m "Update VERSION.txt"
25+
git commit -m "Update VERSION.txt" || echo "No changes to commit"
2126
git push

0 commit comments

Comments
 (0)