summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2022-09-05 19:37:33 -0700
committerTrainDoctor <traindoctor@protonmail.com>2022-09-05 19:37:33 -0700
commit1377d830230a356167d34b80f0fce7468e51ad26 (patch)
treecdff0e8161744c2e53c7c6f6b0f5df08e37173f6 /.github
parent43d36d2b35ed2573f212ecda42d465bd552120af (diff)
downloaddecky-loader-1377d830230a356167d34b80f0fce7468e51ad26.tar.gz
decky-loader-1377d830230a356167d34b80f0fce7468e51ad26.zip
Better handling for release to new pre-release
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e35f115e..d5c0e284 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -147,8 +147,17 @@ jobs:
run: |
export VERSION=${{ steps.old_tag.outputs.tag }}
echo "VERS: $VERSION"
- OUT=$(semver bump prerel "$VERSION")
- echo "OUT: $OUT"
+ OUT=""
+ if [[ ! "$VERSION" =~ "-pre" ]]; then
+ printf "is release, bumping minor version and prerel\n"
+ OUT=$(semver bump minor "$VERSION")
+ OUT="$OUT-pre"
+ OUT=$(semver bump prerel "$OUT")
+ printf "OUT: ${OUT}\n"
+ elif [[ "$VERSION" =~ "-pre" ]]; then
+ printf "is a prerelease, bumping prerel\n"
+ OUT=$(semver bump prerel "$VERSION")
+ fi
echo ::set-output name=tag_name::v$OUT
- name: Push tag 📤