Skip to content

Commit d6d36ce

Browse files
committed
change 1 to 2
1 parent 5bb69a0 commit d6d36ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cleanup-script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ delete_old_tags() {
99
echo "Processing repository: $repo"
1010

1111
# List tags and filter for SHA-based tags, excluding the most recent 5
12-
SHA_TAGS=$(doctl registry repository list-tags "$repo" --format "Manifest Digest" --no-header | grep -E '^sha' | sort -r | tail -n +1) || true
12+
SHA_TAGS=$(doctl registry repository list-tags "$repo" --format "Manifest Digest" --no-header | grep -E '^sha' | sort -r | tail -n +2) || true
1313

1414
if [ -z "$SHA_TAGS" ]; then
1515
echo "No old SHA tags found for repository: $repo"

0 commit comments

Comments
 (0)