summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6c429e37..a3d4af9b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -213,18 +213,18 @@ jobs:
run: |
export VERSION=${{ steps.latest_release.outputs.release }}
echo "VERS: $VERSION"
- OUT="notsemver"
+ OUT=""
if [[ ! ${{ github.event.inputs.bump }} == "none" ]]; then
printf "bumping by release then by selected\n"
OUT=$(semver bump release "$VERSION")
printf "OUT: ${OUT}\n"
OUT=$(semver bump ${{github.event.inputs.bump}} "$OUT")
printf "OUT: ${OUT}\n"
- fi
- if [[ ! "$OUT" =~ "-pre" ]]; then
- printf "appending -pre to new prerelease\n"
- OUT="${OUT}-pre"
- printf "OUT: ${OUT}\n"
+ if [[ ! "$OUT" =~ "-pre" ]]; then
+ printf "appending -pre to new prerelease\n"
+ OUT="${OUT}-pre"
+ printf "OUT: ${OUT}\n"
+ fi
fi
if [[ "$OUT" == "" ]]; then
OUT=$(semver bump prerel "$VERSION")