Skip to content

Commit

Permalink
Fixed minecraft version not being set correctly on worklfow run.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Jun 27, 2023
1 parent 4e0358f commit c824daa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
run: echo "DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Set Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> ${GITHUB_ENV}
- name: Get current branch
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
echo "::set-output name=branch::$branch"
echo "Branch is $branch."
- name: Set Minecraft Version
run: echo "MINECRAFT_VERSION=${GITHUB_REF##*/}" >> ${GITHUB_ENV}
run: echo "MINECRAFT_VERSION=$branch" >> ${GITHUB_ENV}
- name: Build jar
run: ./gradlew build
env:
Expand Down

0 comments on commit c824daa

Please sign in to comment.