Skip to content

Commit 7d81e42

Browse files
committed
change latest 5 to 1
1 parent 2ea6b5a commit 7d81e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cleanup-script.sh

Lines changed: 1 addition & 1 deletion
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 Tag --no-header | grep -E '^sha' | sort -r | tail -n +6) || true
12+
SHA_TAGS=$(doctl registry repository list-tags "$repo" --format Tag --no-header | grep -E '^sha' | sort -r | tail -n +1) || true
1313

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

0 commit comments

Comments
 (0)