Skip to content

Commit

Permalink
Add support for support branches for release purposes in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
yruslan committed Sep 25, 2024
1 parent eaf90a2 commit e12129f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: main
ref: ${{ github.event.inputs.branch }}

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit e12129f

Please sign in to comment.