Corrected dummy tag, added echoing

This commit is contained in:
TrainDoctor
2022-08-11 16:18:21 -07:00
parent 860caf440b
commit 20792c1d1e
+3 -3
View File
@@ -118,10 +118,10 @@ jobs:
run: | run: |
export VERSION=${{ steps.old_tag.outputs.tag }} export VERSION=${{ steps.old_tag.outputs.tag }}
export SEMVER=$(sed -r 's/(-.*)?-pre$//' <<< $VERSION) export SEMVER=$(sed -r 's/(-.*)?-pre$//' <<< $VERSION)
# check if original tag is release, if so we add "-pre" to the end echo "VERS: $VERSION"
# [[ "$VERSION" =~ "pre" ]] && $APPENDPRE="true" echo "TO SEMVER: $SEMVER"
OUT=$(semver bump prerel "$SEMVER")-pre OUT=$(semver bump prerel "$SEMVER")-pre
# [[ "$APPENDPRE" == "true" ]] && "$OUT"="$OUT"-pre echo "OUT: $OUT"
echo ::set-output name=tag_name::$(sed -r 's/(-.*)?-pre$//' <<< $VERSION)-pre echo ::set-output name=tag_name::$(sed -r 's/(-.*)?-pre$//' <<< $VERSION)-pre
- name: Push tag 📤 - name: Push tag 📤