Skip to content

Commit 9e0ebe8

Browse files
committed
fix: delete_since_days order of execution
1 parent 1be9659 commit 9e0ebe8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dc/registry_delete.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ function force_delete_repo() {
8989
if [ "$FORCE_DELETE_REPO" == "true" ]; then
9090
repo_tags=$(curl -s -u $HTTPS_USERNAME https://$REGISTRY_URL/v2/$GITHUB_OWNER/$APP_NAME/tags/list | jq -r '.tags[]?')
9191
if [ -n "$repo_tags" ]; then
92-
echo "::error::found existing manifests for $REGISTRY_URL/$GITHUB_OWNER/$APP_NAME"
93-
exit 1
94-
else
92+
echo "::warning::found existing manifests for $REGISTRY_URL/$GITHUB_OWNER/$APP_NAME, running delete"
9593
delete_since_days "$repo_tags" "0"
9694
fi
9795

0 commit comments

Comments
 (0)