From 4505806967bc88ac28b0c2f9c807f7d2a74b6649 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Tue, 4 Jun 2024 12:47:32 +0200 Subject: [PATCH] Add dryRun --- .github/workflows/maven-update-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-update-version.yml b/.github/workflows/maven-update-version.yml index 672368d..056791a 100644 --- a/.github/workflows/maven-update-version.yml +++ b/.github/workflows/maven-update-version.yml @@ -36,9 +36,9 @@ jobs: run: | echo ${{ inputs.update_type }} if [ ${{ inputs.update_type }} == "minor" ]; then - mvn -B -U release:prepare -DtagNameFormat=@{project.version} -DprojectVersionPolicyId=SemVerVersionPolicy + mvn -B -U -DdryRun=true release:prepare -DtagNameFormat=@{project.version} -DprojectVersionPolicyId=SemVerVersionPolicy elif [ ${{ inputs.update_type }} == "bugfix" ]; then - mvn -B -U release:prepare -DtagNameFormat=@{project.version} + mvn -B -U -DdryRun=true release:prepare -DtagNameFormat=@{project.version} else echo "Not supported type: ${{ inputs.update_type }}" exit 1