Skip to content

Commit 0d7bad5

Browse files
committed
Improve the obtention of the project version when deploying a snapshot in CI
1 parent c3609af commit 0d7bad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
java-version: ${{ inputs.jdk }}
2727
distribution: temurin
2828
- name: Get project version
29-
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
29+
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -q -DforceStdout | grep -v '\[')" >> $GITHUB_ENV
3030
- name: Maven deploy
3131
if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
3232
run: mvn deploy -s .github/maven-cd-settings.xml -DskipTests -B

0 commit comments

Comments
 (0)