Skip to content

Commit

Permalink
Add dryRun
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Jun 4, 2024
1 parent f3ab251 commit 4505806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4505806

Please sign in to comment.