Skip to content

Commit 04f9731

Browse files
committed
Allow releasing a non-master branch.
1 parent e962da9 commit 04f9731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Checkout code
3232
uses: actions/checkout@v4
3333
with:
34-
ref: master
34+
ref: ${{ github.head_ref || github.ref_name }}
3535

3636
- name: Setup JDK and sbt
3737
uses: actions/setup-java@v4
@@ -72,7 +72,7 @@ jobs:
7272
- name: Checkout code
7373
uses: actions/checkout@v4
7474
with:
75-
ref: master
75+
ref: ${{ github.head_ref || github.ref_name }}
7676

7777
- name: Checkout the release branch
7878
id: release_branch3

0 commit comments

Comments
 (0)