Skip to content

Commit 6200de5

Browse files
committed
Fix the release workflow.
1 parent 04f9731 commit 6200de5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
with:
3434
ref: ${{ github.head_ref || github.ref_name }}
3535

36+
- name: Prepare the release branch
37+
run: |
38+
VERSION=$(grep "ThisBuild / version" version.sbt | cut -d\" -f2 | sed 's/-SNAPSHOT//')
39+
git config --global user.email "[email protected]"
40+
git config --global user.name "CI/CD bot"
41+
git checkout -b release/$VERSION
42+
git push --set-upstream origin release/$VERSION
43+
3644
- name: Setup JDK and sbt
3745
uses: actions/setup-java@v4
3846
with:
@@ -54,9 +62,6 @@ jobs:
5462
- name: Checkout the release branch
5563
run: |
5664
VERSION=$(grep "ThisBuild / version" version.sbt | cut -d\" -f2 | sed 's/-SNAPSHOT//')
57-
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
58-
git config --global user.email "[email protected]"
59-
git config --global user.name "CI/CD bot"
6065
git fetch origin release/$VERSION
6166
git checkout release/$VERSION
6267

0 commit comments

Comments
 (0)