diff --git a/site/zenodo_rdm/github/release.py b/site/zenodo_rdm/github/release.py index 047f3344..579cb49a 100644 --- a/site/zenodo_rdm/github/release.py +++ b/site/zenodo_rdm/github/release.py @@ -112,5 +112,7 @@ def metadata(self): ) # Add default license if not yet added if not output.get("rights"): - output.update({"rights": [{"id": metadata.repo_license or "cc-by-4.0"}]}) + output.update( + {"rights": [{"id": metadata.repo_license.lower() or "cc-by-4.0"}]} + ) return output