generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,8 @@ jobs: | |
|
||
- name: Set Maven Project Version | ||
id: set-version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
current_version=$(mvn help:evaluate -f pom.xml -Dexpression=project.version -q -DforceStdout) | ||
echo "Current version: $current_version" | ||
|
@@ -103,6 +105,8 @@ jobs: | |
mvn -B versions:set -DnewVersion=$new_version -f pom.xml | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git checkout -b release-$new_version | ||
git add pom.xml | ||
git commit -m "Bump version to $new_version" | ||
git push | ||
git commit -m "Bump sprint version to $new_version" | ||
git push --set-upstream origin release-$new_version | ||
gh pr create --title "Bump eai version to $new_version" --base sprint --head release-$new_version --body "Bump eai version to $new_version after Release build" |