diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-09-05 19:37:33 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-09-05 19:37:33 -0700 |
| commit | 1377d830230a356167d34b80f0fce7468e51ad26 (patch) | |
| tree | cdff0e8161744c2e53c7c6f6b0f5df08e37173f6 /.github/workflows | |
| parent | 43d36d2b35ed2573f212ecda42d465bd552120af (diff) | |
| download | decky-loader-1377d830230a356167d34b80f0fce7468e51ad26.tar.gz decky-loader-1377d830230a356167d34b80f0fce7468e51ad26.zip | |
Better handling for release to new pre-release
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 13 |
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 📤 |
