We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0239d commit a9e48d2Copy full SHA for a9e48d2
.github/workflows/update_version.yml
@@ -7,15 +7,20 @@ jobs:
7
runs-on: ubuntu-latest
8
steps:
9
- uses: actions/checkout@v4
10
+
11
+ - name: Checkout
12
+ uses: actions/checkout@v4
13
+ with:
14
+ token: ${{ secrets.GH_PAT }}
15
16
- name: Generate version
17
run: |
18
echo "v$(date +'%Y.%m.%d-%H%M')-g$(git rev-parse --short HEAD)" > VERSION.txt
19
- - name: Commit version file
20
+ - name: Commit and push version file
21
22
git config user.name "github-actions"
23
git config user.email "[email protected]"
24
git add VERSION.txt
- git commit -m "Update VERSION.txt"
25
+ git commit -m "Update VERSION.txt" || echo "No changes to commit"
26
git push
0 commit comments