Skip to content

Commit

Permalink
fix update code
Browse files Browse the repository at this point in the history
  • Loading branch information
scottprahl committed Aug 27, 2023
1 parent d73aac5 commit 3a83bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/update_citation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a83bea

Please sign in to comment.