mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2026-03-01 00:39:54 +01:00
Small refactoring for the prerelease tagging logic (#55)
This commit is contained in:
parent
81ba2dfaa3
commit
f38404a648
2
.github/workflows/label-reviews.yml
vendored
2
.github/workflows/label-reviews.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
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.
|
||||
rules_yaml: |-
|
||||
Affects Balance: 3
|
||||
|
||||
8
.github/workflows/release-tags.yml
vendored
8
.github/workflows/release-tags.yml
vendored
@ -85,9 +85,11 @@ jobs:
|
||||
|
||||
- name: Release under current tag
|
||||
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
|
||||
PRERELEASE="--prerelease"
|
||||
PRERELEASE_FLAG="--prerelease"
|
||||
fi
|
||||
CHANGELOG_OVERRIDE=".changelogs/${RELEASE_VERSION}.md"
|
||||
if [[ -f "$CHANGELOG_OVERRIDE" ]]; then
|
||||
@ -104,7 +106,7 @@ jobs:
|
||||
--jq ".body" > "${CHANGELOG_FILE}"
|
||||
fi
|
||||
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
|
||||
continue-on-error: true
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user