Skip to content

Commit

Permalink
Ensure BUILD_JSON env is init
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle authored Apr 21, 2024
1 parent fdf2333 commit fc52c4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
PROJECT: 'floodgate'
steps:
- name: Set Build Number
if: ${{ github.repository == 'GeyserMC/Floodgate' }}
env:
BUILD_JSON: ${{ vars.RELEASEACTION_PREVRELEASE }}
run: |
BUILD_JSON=${BUILD_JSON:="{}"}
BUILD_NUMBER=$(echo $BUILD_JSON | jq --arg branch "${GITHUB_REF_NAME}" 'if .[$branch] == null then 1 else .[$branch] | .t | tonumber + 1 end // 1')
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_ENV
Expand Down

0 comments on commit fc52c4e

Please sign in to comment.