Avoid deleting things like dev_k6

This commit is contained in:
Salvador E. Tropea 2023-03-17 10:35:34 -03:00
parent 706cc0aa37
commit a5c87ca97e
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ for PKG in PKGS:
print(f"Deleting {v['html_url']} UNTAGGED {days_ago} days ago")
erase(v["id"])
deleted += 1
elif len(tags) == 1 and tags[0].startswith('dev_'):
elif len(tags) == 1 and tags[0].startswith('dev_') and len(tags[0]) > 6:
# Is dev_* and isn't tagged as the last dev
print(f"Deleting {v['html_url']} {tags[0]} {days_ago} days ago")
erase(v["id"])