Skip to content

Commit

Permalink
Fix bug with long git descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Dec 23, 2024
1 parent 62125ff commit 16d0081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipelines/templates/steps/publish-description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ steps:
url = f"https://api.github.com/repos/CybercentreCanada/{git_repo}"
rsp = httpx.get(url)
body["description"] = rsp.json().get("description", "")
desc = rsp.json().get("description", "")
if desc and len(desc) < 100:
body["description"] = desc
token = os.environ["TKN"]
headers = {
Expand Down

0 comments on commit 16d0081

Please sign in to comment.