Skip to content

Commit a13f5ee

Browse files
committed
Improve the obtention of the project version when deploying a snapshot in CI
1 parent 3a39ab8 commit a13f5ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
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 -pl vertx-sql-client,vertx-pg-client,vertx-mysql-client,vertx-mssql-client,vertx-db2-client,vertx-sql-client-templates
@@ -44,7 +44,7 @@ jobs:
4444
java-version: 17
4545
distribution: temurin
4646
- name: Get project version
47-
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
47+
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -q -DforceStdout | grep -v '\[')" >> $GITHUB_ENV
4848
- name: Maven deploy
4949
if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
5050
run: mvn deploy -s .github/maven-cd-settings.xml -DskipTests -B -pl vertx-oracle-client

0 commit comments

Comments
 (0)