Small refactoring for the prerelease tagging logic (#55)

This commit is contained in:
Wilhelm Schuster 2025-12-21 16:56:10 +01:00 committed by GitHub
parent 81ba2dfaa3
commit f38404a648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
# define which PR labels require how many aprroving reviewers # define which PR labels require how many approving reviewers
# Case sensitive and needs the full label name. # Case sensitive and needs the full label name.
rules_yaml: |- rules_yaml: |-
Affects Balance: 3 Affects Balance: 3

View File

@ -85,9 +85,11 @@ jobs:
- name: Release under current tag - name: Release under current tag
run: | run: |
PRERELEASE="" PRERELEASE_FLAG=""
# DreamAssemblerXXL unfortunately breaks if prereleases are tagged as such on GitHub, so we only check for
# $SNAPSHOT here.
if [[ "$SNAPSHOT" == "true" ]]; then if [[ "$SNAPSHOT" == "true" ]]; then
PRERELEASE="--prerelease" PRERELEASE_FLAG="--prerelease"
fi fi
CHANGELOG_OVERRIDE=".changelogs/${RELEASE_VERSION}.md" CHANGELOG_OVERRIDE=".changelogs/${RELEASE_VERSION}.md"
if [[ -f "$CHANGELOG_OVERRIDE" ]]; then if [[ -f "$CHANGELOG_OVERRIDE" ]]; then
@ -104,7 +106,7 @@ jobs:
--jq ".body" > "${CHANGELOG_FILE}" --jq ".body" > "${CHANGELOG_FILE}"
fi fi
cat "${CHANGELOG_FILE}" cat "${CHANGELOG_FILE}"
gh release create "${RELEASE_VERSION}" -F "${CHANGELOG_FILE}" $PRERELEASE ./build/libs/*.jar gh release create "${RELEASE_VERSION}" -F "${CHANGELOG_FILE}" ${PRERELEASE_FLAG} ./build/libs/*.jar
shell: bash shell: bash
continue-on-error: true continue-on-error: true
env: env: