Skip to content

Commit

Permalink
Update trigger workflow the version handling (#152)
Browse files Browse the repository at this point in the history
The root pom (build) is not the parent pom, this means using versions:set
won't work as expected. Instead we must
1. set the version on parent/pom.xml
2. update all children poms
3. commit changes
  • Loading branch information
aalmiray committed Oct 4, 2021
1 parent 5b62329 commit 2b66c51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ jobs:
VERSION=${{ github.event.inputs.version }}
echo "Releasing $VERSION from $BRANCH branch"
git checkout $BRANCH
./mvnw -B versions:set versions:commit -DnewVersion=1.0.0.RC2 -Dversion.versions.plugin=2.7 -DgenerateBackupPoms=false -f parent/pom.xml
./mvnw -B versions:set -DnewVersion=$VERSION -f parent/pom.xml -pl :moditect-parent -Dversion.versions.plugin=2.7 -DgenerateBackupPoms=false
./mvnw -B versions:update-child-modules
./mvnw -B versions:commit
git config --global user.email "moditect-release-bot@moditect.org"
git config --global user.name "moditect-release-bot"
git commit -a -m "Releasing version $VERSION"
Expand Down

0 comments on commit 2b66c51

Please sign in to comment.