summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2022-09-04 20:36:03 -0700
committerTrainDoctor <traindoctor@protonmail.com>2022-09-04 20:39:57 -0700
commit97f95705f8ba971608d5c723a50839a591e21eb4 (patch)
tree87d522c431376defed64022dfb1bb181cfa0253d /.github/workflows/build.yml
parent7c99af9a9a9ef1c3d0bf9dc7cca2bfad6a9f82e9 (diff)
downloaddecky-loader-97f95705f8ba971608d5c723a50839a591e21eb4.tar.gz
decky-loader-97f95705f8ba971608d5c723a50839a591e21eb4.zip
Fix pre-release, none
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1df1b34d..813d22ee 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -210,14 +210,18 @@ jobs:
if [[ "${{github.event.inputs.bump}}" != "none" ]]; then
OUT=$(semver bump release "$VERSION")
printf "OUT: ${OUT}\n"
- OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION")
+ OUT=$(semver bump ${{github.event.inputs.bump}} "$OUT")
printf "OUT: ${OUT}\n"
fi
if [[ ! "$OUT" =~ "-pre" ]]; then
- OUT="$OUT-pre"
+ OUT="${OUT}-pre"
printf "OUT: ${OUT}\n"
fi
- OUT=$(semver bump prerel "$OUT")
+ if [[ "$OUT" == "" ]]; then
+ OUT=$(semver bump prerel "$VERSION")
+ else
+ OUT=$(semver bump prerel "$OUT")
+ fi
echo "OUT: v$OUT"
echo ::set-output name=tag_name::v$OUT