File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,13 @@ if [[ "$CURRENT_VERSION" != *.dev0 ]]; then
106106 if [[ " $TEST_MODE " == " true" ]]; then
107107 echo " "
108108 echo " ⚠️ TEST MODE: Tag created but will NOT trigger publishing"
109- echo " To clean up test artifacts, delete the test-v$CURRENT_VERSION tag and test/* branches"
109+ echo " "
110+ echo " ⚠️ TEST MODE CLEANUP:"
111+ echo " - Delete tags: git push origin --delete tag $TAG_PREFIX$NEW_VERSION "
112+ echo " - Delete local tags: git tag --delete $TAG_PREFIX$NEW_VERSION "
113+ echo " - Delete branches: git push origin --delete test/master"
114+ echo " - Delete local branches: git branch --delete --force test/master"
115+ echo " - Delete releases: gh release delete $TAG_PREFIX$NEW_VERSION "
110116 fi
111117 exit 0
112118fi
@@ -237,8 +243,10 @@ if [[ "$TEST_MODE" == "true" ]]; then
237243 echo " "
238244 echo " ⚠️ TEST MODE CLEANUP:"
239245 echo " - Delete the test PR when done"
240- echo " - Delete tags: git push origin --delete-refs refs/tags/$TAG_PREFIX *"
246+ echo " - Delete tags: git push origin --delete tag $TAG_PREFIX$NEW_VERSION "
247+ echo " - Delete local tags: git tag --delete $TAG_PREFIX$NEW_VERSION "
241248 echo " - Delete branches: git push origin --delete test/master test/release"
249+ echo " - Delete local branches: git branch --delete --force test/master test/release"
242250else
243251 echo " Release version: v$NEW_VERSION "
244252fi
You can’t perform that action at this time.
0 commit comments