Skip to content

Commit

Permalink
fix(release-published.yml): fix order of commands in 'Prepare Maven R…
Browse files Browse the repository at this point in the history
…elease' step

The order of commands in the 'Prepare Maven Release' step was incorrect. The 'git reset --hard HEAD~1' command should be executed after getting the version from Maven. This commit fixes the order of commands to ensure that the correct version is used when tagging the release.
  • Loading branch information
jandroav committed Oct 5, 2023
1 parent 1dd5df9 commit 16f2591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
- name: Prepare Maven Release
run: |
git reset --hard HEAD~1
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
git reset --hard HEAD~1
git tag -d liquibase-${{ matrix.artifact.name }}-${version}
mvn -B build-helper:parse-version versions:set release:clean release:prepare \
-Dusername=liquibot -Dpassword=$GITHUB_TOKEN \
Expand Down

0 comments on commit 16f2591

Please sign in to comment.