From 8be193249107efa7d40a57601c1a5b91225f25a2 Mon Sep 17 00:00:00 2001 From: ezwelty Date: Mon, 12 Aug 2024 16:42:54 +0200 Subject: [PATCH] Fetch remote before checking tags --- zenodo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zenodo.py b/zenodo.py index 9db98b3..436861a 100644 --- a/zenodo.py +++ b/zenodo.py @@ -553,6 +553,7 @@ def is_repo_publishable() -> Tuple[str, str]: 'Frictionless tests failed. Publishing requires passing tests.' ) # Tag is not already in use + REPO.remotes['origin'].fetch() tag = 'v' + glenglat.read_metadata()['version'] existing_tags = [repo_tag for repo_tag in REPO.tags if repo_tag.name == tag] if existing_tags: