Skip to content

Commit

Permalink
Merge pull request #80 from NFDI4BIOIMAGE/tag_zenodo
Browse files Browse the repository at this point in the history
auto-tag zenodo
  • Loading branch information
haesleinhuepf authored May 22, 2024
2 parents 23bc147 + 8b6764d commit 10d3b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generate_link_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def read_yaml_file(filename):
import yaml
with open(filename, 'r', encoding="utf8") as file:
data = yaml.safe_load(file)

if "url" in data.keys() and "zenodo" in str(data["url"]).lower():
data["tags"].append("zenodo")

return data

def write_yaml_file(file_path, data):
Expand Down

0 comments on commit 10d3b1d

Please sign in to comment.