diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 10 |
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 |
