Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Fallback to GITHUB_RUN_NUMBER if RELEASEACTION_PREVRELEASE is unset (#4587)
This is so there is still a build number when built on other repositories
Dieser Commit ist enthalten in:
Ursprung
810c9ced72
Commit
4d32b2fecb
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -7,9 +7,9 @@ on:
|
|||||||
- 'gh-readonly-queue/**'
|
- 'gh-readonly-queue/**'
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/ISSUE_TEMPLATE/*.yml'
|
- '.github/ISSUE_TEMPLATE/*.yml'
|
||||||
- '.github/actions/workflows/build-remote.yml'
|
- '.github/workflows/build-remote.yml'
|
||||||
- '.github/actions/workflows/preview.yml'
|
- '.github/workflows/preview.yml'
|
||||||
- '.github/actions/workflows/pull-request.yml'
|
- '.github/workflows/pull-request.yml'
|
||||||
- '.idea/copyright/*.xml'
|
- '.idea/copyright/*.xml'
|
||||||
- '.gitignore'
|
- '.gitignore'
|
||||||
- 'CONTRIBUTING.md'
|
- 'CONTRIBUTING.md'
|
||||||
@ -29,7 +29,7 @@ jobs:
|
|||||||
BUILD_JSON: ${{ vars.RELEASEACTION_PREVRELEASE }}
|
BUILD_JSON: ${{ vars.RELEASEACTION_PREVRELEASE }}
|
||||||
run: |
|
run: |
|
||||||
BUILD_NUMBER=$(echo $BUILD_JSON | jq --arg branch "${GITHUB_REF_NAME}" 'if .[$branch] == null then 1 else .[$branch] | .t | tonumber + 1 end // 1')
|
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
|
echo "BUILD_NUMBER=${BUILD_NUMBER:=$GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout repository and submodules
|
- name: Checkout repository and submodules
|
||||||
# See https://github.com/actions/checkout/commits
|
# See https://github.com/actions/checkout/commits
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren