Skip to content

Commit cf0239d

Browse files
committed
2 parents 050571e + 336dcf4 commit cf0239d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
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

Comments
 (0)