File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ name: Delete stale pre-releases
1414# Only pre-releases are considered. Production releases (v1.2.3) and
1515# the long-running dev-build pre-release are never touched.
1616on :
17- pull_request :
1817 push :
1918 branches :
2019 - main
@@ -73,12 +72,12 @@ jobs:
7372
7473 # Branch is gone — delete the stale pre-release and its tag
7574 echo " Branch no longer exists, deleting pre-release: $TAG"
76- # if gh release --repo="$REPO" delete "$TAG" -y --cleanup-tag; then
77- # echo " Successfully deleted $TAG"
78- # DELETED=$((DELETED + 1))
79- # else
80- # echo " Failed to delete $TAG"
81- # fi
75+ if gh release --repo="$REPO" delete "$TAG" -y --cleanup-tag; then
76+ echo " Successfully deleted $TAG"
77+ DELETED=$((DELETED + 1))
78+ else
79+ echo " Failed to delete $TAG"
80+ fi
8281 sleep 1
8382 done
8483
You can’t perform that action at this time.
0 commit comments