From a3bd45a969943d1db99a6d8cfaf2a64863c62b48 Mon Sep 17 00:00:00 2001 From: Pavel Kotelevsky Date: Tue, 10 Oct 2023 08:47:11 +0200 Subject: [PATCH] build: push release branch before creating a PR --- .github/workflows/CREATE_RELEASE_BRANCH.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CREATE_RELEASE_BRANCH.yml b/.github/workflows/CREATE_RELEASE_BRANCH.yml index eace7d18ad..57a1142ee1 100644 --- a/.github/workflows/CREATE_RELEASE_BRANCH.yml +++ b/.github/workflows/CREATE_RELEASE_BRANCH.yml @@ -34,6 +34,7 @@ jobs: java-version: '17' - name: Set snapshot version on release branch + id: set-snapshot-version run: | MINOR_VERSION=${RELEASE_VERSION%.*} mvn -B versions:set -DnewVersion=${RELEASE_VERSION}-SNAPSHOT -DgenerateBackupPoms=false -f parent @@ -45,7 +46,7 @@ jobs: uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ steps.create-branch.outputs.branchName }} + branch: ${{ steps.set-snapshot-version.outputs.branchName }} commit-message: "ci: set next snapshot version" committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> base: main