Skip to content

Commit ad08711

Browse files
committed
chore(ci): update Maven command to extract project version using help:evaluate for accuracy
1 parent ff96284 commit ad08711

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161

6262
- name: Extract Maven project version
63-
run: echo "version=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> "$GITHUB_OUTPUT"
63+
run: echo "version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_OUTPUT"
6464
id: project
6565

6666
- name: Show extracted Maven project version

0 commit comments

Comments
 (0)