From 97f95705f8ba971608d5c723a50839a591e21eb4 Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Sun, 4 Sep 2022 20:36:03 -0700 Subject: Fix pre-release, none --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github') 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 -- cgit v1.2.3