mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 23:21:57 +00:00
Better handling for release to new pre-release
This commit is contained in:
@@ -147,8 +147,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export VERSION=${{ steps.old_tag.outputs.tag }}
|
export VERSION=${{ steps.old_tag.outputs.tag }}
|
||||||
echo "VERS: $VERSION"
|
echo "VERS: $VERSION"
|
||||||
OUT=$(semver bump prerel "$VERSION")
|
OUT=""
|
||||||
echo "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
|
echo ::set-output name=tag_name::v$OUT
|
||||||
|
|
||||||
- name: Push tag 📤
|
- name: Push tag 📤
|
||||||
|
|||||||
Reference in New Issue
Block a user