From 92189c59b8b53690cbb1bec8ef186b0f487d698a Mon Sep 17 00:00:00 2001 From: Mauro Date: Wed, 11 Sep 2024 13:46:08 +0200 Subject: [PATCH] removed sha filter --- .github/workflows/cleanup-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleanup-script.sh b/.github/workflows/cleanup-script.sh index 18827c45..6a2fad1c 100644 --- a/.github/workflows/cleanup-script.sh +++ b/.github/workflows/cleanup-script.sh @@ -9,7 +9,7 @@ delete_old_tags() { echo "Processing repository: $repo" # List tags and filter for SHA-based tags, excluding the most recent 5 - SHA_TAGS=$(doctl registry repository list-tags "$repo" --format Tag --no-header | grep -E '^sha' | sort -r | tail -n +1) || true + SHA_TAGS=$(doctl registry repository list-tags "$repo" --format Tag --no-header | sort -r | tail -n +1) || true if [ -z "$SHA_TAGS" ]; then echo "No old SHA tags found for repository: $repo"