Skip to content

Commit

Permalink
Fix the release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
yruslan committed Mar 27, 2024
1 parent 04f9731 commit 6200de5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
with:
ref: ${{ github.head_ref || github.ref_name }}

- name: Prepare the release branch
run: |
VERSION=$(grep "ThisBuild / version" version.sbt | cut -d\" -f2 | sed 's/-SNAPSHOT//')
git config --global user.email "[email protected]"
git config --global user.name "CI/CD bot"
git checkout -b release/$VERSION
git push --set-upstream origin release/$VERSION
- name: Setup JDK and sbt
uses: actions/setup-java@v4
with:
Expand All @@ -54,9 +62,6 @@ jobs:
- name: Checkout the release branch
run: |
VERSION=$(grep "ThisBuild / version" version.sbt | cut -d\" -f2 | sed 's/-SNAPSHOT//')
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
git config --global user.email "[email protected]"
git config --global user.name "CI/CD bot"
git fetch origin release/$VERSION
git checkout release/$VERSION
Expand Down

0 comments on commit 6200de5

Please sign in to comment.