Skip to content

Commit 8d79b10

Browse files
authored
Update workflow file to commit the next snapshot version in message
1 parent 3be7ff4 commit 8d79b10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ jobs:
7676
# Commit the snapshot version
7777
- name: Commit snapshot version
7878
run: |
79+
NEW_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
7980
git add .
80-
git commit -m "${{ github.event.inputs.version }}-SNAPSHOT"
81+
git commit -m "$NEW_VERSION"
82+
# git commit -m "${{ github.event.inputs.version }}-SNAPSHOT"
8183

8284
# Push commits and tags to GitHub
8385
- name: Push changes

0 commit comments

Comments
 (0)