diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-09-04 20:11:06 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-09-04 20:11:06 -0700 |
| commit | b35bd056d5389cf796279ef1b2676783c6036a81 (patch) | |
| tree | f0b566f9ed18c509bfe735d1916c300fab96c70d /.github/workflows | |
| parent | d2da85460d7de81b39e93662b018f889be5646dc (diff) | |
| download | decky-loader-b35bd056d5389cf796279ef1b2676783c6036a81.tar.gz decky-loader-b35bd056d5389cf796279ef1b2676783c6036a81.zip | |
Work on bump logic
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eca53e8..5f423117 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,9 +136,14 @@ jobs: echo "VERS: $VERSION" if [[ "$VERSION" =~ "-pre" ]]; then OUT=$(semver bump release "$VERSION") + if [[ "${{github.event.inputs.bump}}" != "none" ]]; then + OUT=$(semver bump ${{github.event.inputs.bump}} "$OUT") + fi elif [[ ! "$VERSION" =~ "-pre" ]]; then if [[ "${{github.event.inputs.bump}}" != "none" ]]; then OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") + else + OUT=$(semver bump patch "$VERSION") fi fi echo "OUT: v$OUT" @@ -195,12 +200,10 @@ jobs: export VERSION=${{ steps.latest_release.outputs.release }} echo "VERS: $VERSION" if [[ ! "$VERSION" =~ "-pre" ]]; then - OUT=$(semver bump minor "$VERSION") OUT="$OUT-pre" - elif [[ "$VERSION" =~ "-pre" ]]; then - if [[ "${{github.event.inputs.bump}}" != "none" ]]; then - OUT=$(semver bump ${{github.event.inputs.bump}} "$OUT") - fi + fi + if [[ "${{github.event.inputs.bump}}" != "none" ]]; then + OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") fi OUT=$(semver bump prerel "$OUT") echo "OUT: v$OUT" |
