From 3a83beada5dadb4d43c900b7b187f1ef2dc84c70 Mon Sep 17 00:00:00 2001 From: Scott Prahl Date: Sun, 27 Aug 2023 14:21:39 -0700 Subject: [PATCH] fix update code --- .github/scripts/update_citation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/update_citation.py b/.github/scripts/update_citation.py index 5901b8a..9a61655 100644 --- a/.github/scripts/update_citation.py +++ b/.github/scripts/update_citation.py @@ -8,7 +8,8 @@ # Fetch latest release date response = requests.get(f"https://api.github.com/repos/{USERNAME}/{REPO}/releases/latest") -release_date = json.loads(response.text)["published_at"].split("T")[0] +release_info = json.loads(response.text) +release_date = release_info["published_at"].split("T")[0] version = release_info["tag_name"] # Read the existing CITATION.cff file