From 6bc2b5b36e43b676adf427c71713320e6d216838 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Sun, 9 Jul 2023 14:21:18 -0400 Subject: [PATCH] Fix version autodetection when autoreleasing [skip ci] --- scripts/autorelease.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/autorelease.sh b/scripts/autorelease.sh index eb595695..aedd26bb 100755 --- a/scripts/autorelease.sh +++ b/scripts/autorelease.sh @@ -37,6 +37,8 @@ do_release() { git tag -a $tag_name -m "$tag_name" git push --tags gh release create $tag_name --target $1 --title "$tag_name" --notes "" + # now delete local tag to prevent messing up the detected tag for the next version + git tag -d $tag_name &>/dev/null } for version in "${all_versions[@]}"; do