diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-09-04 20:25:44 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-09-04 20:25:44 -0700 |
| commit | 7c99af9a9a9ef1c3d0bf9dc7cca2bfad6a9f82e9 (patch) | |
| tree | 1662caa03884a708df5b0e445778c9552dfec404 /.github | |
| parent | b35bd056d5389cf796279ef1b2676783c6036a81 (diff) | |
| download | decky-loader-7c99af9a9a9ef1c3d0bf9dc7cca2bfad6a9f82e9.tar.gz decky-loader-7c99af9a9a9ef1c3d0bf9dc7cca2bfad6a9f82e9.zip | |
Add more logging and change release bump logic
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f423117..1df1b34d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -135,18 +135,26 @@ jobs: export VERSION=${{ steps.latest_release.outputs.release }} echo "VERS: $VERSION" if [[ "$VERSION" =~ "-pre" ]]; then + printf "is prerelease, bumping release\n" OUT=$(semver bump release "$VERSION") + printf "OUT: ${OUT}\n" if [[ "${{github.event.inputs.bump}}" != "none" ]]; then OUT=$(semver bump ${{github.event.inputs.bump}} "$OUT") + printf "OUT: ${OUT}\n" fi elif [[ ! "$VERSION" =~ "-pre" ]]; then + printf "is a release, bumping as selected\n" if [[ "${{github.event.inputs.bump}}" != "none" ]]; then OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") + printf "OUT: ${OUT}\n" else + printf "none bump selected, but cannot have identical tag\n" + printf "bumping patch\n" OUT=$(semver bump patch "$VERSION") + printf "OUT: ${OUT}\n" fi fi - echo "OUT: v$OUT" + echo "vOUT: v$OUT" echo ::set-output name=tag_name::v$OUT - name: Push tag 📤 @@ -199,11 +207,15 @@ jobs: run: | export VERSION=${{ steps.latest_release.outputs.release }} echo "VERS: $VERSION" - if [[ ! "$VERSION" =~ "-pre" ]]; then - OUT="$OUT-pre" - fi if [[ "${{github.event.inputs.bump}}" != "none" ]]; then + OUT=$(semver bump release "$VERSION") + printf "OUT: ${OUT}\n" OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") + printf "OUT: ${OUT}\n" + fi + if [[ ! "$OUT" =~ "-pre" ]]; then + OUT="$OUT-pre" + printf "OUT: ${OUT}\n" fi OUT=$(semver bump prerel "$OUT") echo "OUT: v$OUT" |
