Skip to content

Commit 66621e2

Browse files
committed
test: confirm expected pre releases are noted to delete
1 parent b36e94c commit 66621e2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/delete-stale-pre-releases.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ 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.
1616
on:
17+
pull_request:
1718
push:
1819
branches:
1920
- main
@@ -72,12 +73,12 @@ jobs:
7273
7374
# Branch is gone — delete the stale pre-release and its tag
7475
echo " Branch no longer exists, deleting pre-release: $TAG"
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
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
8182
sleep 1
8283
done
8384

0 commit comments

Comments
 (0)