Skip to content

Commit

Permalink
Create generate_readme.py
Browse files Browse the repository at this point in the history
  • Loading branch information
monk1337 authored Oct 13, 2023
1 parent 4ef2ad1 commit 3b0bc89
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/scripts/generate_readme.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import json

# Load metadata.json
with open('metadata.json', 'r') as f:
data = json.load(f)

# Generate table
table = "| Name | Source |\n| --- | --- |\n"
for item in data:
name = item['name']
source_name = item['source']['name']
source_url = item['source']['url']
table += f"| {name} | [{source_name}]({source_url}) |\n"

# Write to README.md
with open('README.md', 'w') as f:
f.write(table)

0 comments on commit 3b0bc89

Please sign in to comment.