Skip to content

Commit 76577bd

Browse files
committed
Added autoversioning to gradle build. Setting version number to 1.0.0.
Signed-off-by: Rahul Krishna <[email protected]>
1 parent f2f3ee9 commit 76577bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ jobs:
3636

3737
- name: Determine new tag
3838
id: newtag
39-
run: echo "::set-output name=tag::$(date +'%Y%m%dT%H%M%S')"
39+
run: |
40+
VERSION=$(java -jar build/libs/codeanalyzer.jar --version | awk '{print $2}')
41+
TAG="v$VERSION"
42+
echo "tag=$TAG" >> $GITHUB_OUTPUT
4043
4144
- name: Create Git Tag
4245
run: |

0 commit comments

Comments
 (0)