From cff1cd579605c78073a8a6db78983aac63757b9a Mon Sep 17 00:00:00 2001 From: Ruslan Iushchenko Date: Wed, 25 Sep 2024 13:48:43 +0200 Subject: [PATCH] Add support for support branches for release purposes in CI. --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea95b869e..3ff081b0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.inputs.branch }} - uses: actions/setup-python@v4 with: @@ -62,7 +62,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.inputs.branch }} - name: Prepare the release branch id: release_branch1 @@ -122,7 +122,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.inputs.branch }} - name: Setup JDK and sbt uses: actions/setup-java@v4.2.1 @@ -165,7 +165,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.inputs.branch }} - name: Checkout the release branch id: release_branch3 @@ -179,7 +179,7 @@ jobs: git checkout release/$VERSION - name: Create Pull Request - run: gh pr create -B main -H "release/$VERSION" --title "Release Pramen v$VERSION" --body 'Created by Github action' + run: gh pr create -B ${{ github.event.inputs.branch }} -H "release/$VERSION" --title "Release Pramen v$VERSION" --body 'Created by Github action' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VERSION: ${{ steps.release_branch3.outputs.VERSION }}