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 010720d commit 336dcf4Copy full SHA for 336dcf4
.github/workflows/update_version.yml
@@ -0,0 +1,21 @@
1
+name: Update VERSION.txt
2
+
3
+on: [push]
4
5
+jobs:
6
+ version:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
11
+ - name: Generate version
12
+ run: |
13
+ echo "v$(date +'%Y.%m.%d-%H%M')-g$(git rev-parse --short HEAD)" > VERSION.txt
14
15
+ - name: Commit version file
16
17
+ git config user.name "github-actions"
18
+ git config user.email "[email protected]"
19
+ git add VERSION.txt
20
+ git commit -m "Update VERSION.txt"
21
+ git push
0 commit comments