From 9e823726ddb3a90e5eab4264eb04fdeb4bceb65b Mon Sep 17 00:00:00 2001 From: Mirna Rodic Date: Thu, 21 Nov 2024 15:28:33 +0100 Subject: [PATCH] Fixed release workflow --- .github/workflows/release-build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 97540ac..6ba8356 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -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 "github-actions@github.com" 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 \ No newline at end of file + 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" \ No newline at end of file