Skip to content

Commit

Permalink
Topics test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Sep 18, 2023
1 parent 7940456 commit bcdd0ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publiccode-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ jobs:
created_at_date = "$REPO_CREATED_AT"
# Convert topics JSON string to Python list and then to comma-separated string
topics_list = json.loads("$REPO_TOPICS")
topics_str = ', '.join(topics_list)
# Update or append values
if "$REPO_NAME" != "null" and "$REPO_NAME":
Expand All @@ -74,8 +72,8 @@ jobs:
data['description'] = "$REPO_DESC"
if "$REPO_HOMEPAGE" != "null" and "$REPO_HOMEPAGE":
data['url'] = "$REPO_HOMEPAGE"
if topics_str:
data['topics'] = topics_str
if "$REPO_TOPICS" != "null" and "$REPO_TOPICS":
data['topics'] = "$REPO_TOPICS"
if "$REPO_LICENSE" != "null" and "$REPO_LICENSE":
data['license'] = "$REPO_LICENSE"
Expand Down

0 comments on commit bcdd0ad

Please sign in to comment.