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.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 📤