From f945e6baebb1c86c94b6d054493bba4d76ef3e37 Mon Sep 17 00:00:00 2001 From: Yoshino-s Date: Tue, 6 Jun 2023 13:00:57 +0800 Subject: [PATCH] fix: remove old tags --- update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.py b/update.py index 080c362..efca1a3 100755 --- a/update.py +++ b/update.py @@ -6,7 +6,8 @@ from os import environ dxf = DXF('ghcr.io', "coder/coder") dxf.authenticate(actions=["pull"]) tags = dxf.list_aliases() -tags = [tag for tag in tags if re.match(r"^v\d+\.\d+\.\d+$", tag)] +tags = [tag for tag in tags if re.match( + r"^v\d+\.\d+\.\d+$", tag) and int(tag.split('.')[1]) > 22] try: