Skip to content

Commit

Permalink
Update generate_markdown_list.py
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovelezg authored Jul 3, 2024
1 parent e8d2bae commit 7384ff2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generate_markdown_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ def save_to_yaml(data, filename):
save_to_csv(markdown_list, "markdown_files.csv")
save_to_json(markdown_list, "markdown_files.json")
save_to_yaml(markdown_list, "markdown_files.yaml")

# Git commands to add and commit the generated files if they have changed
os.system('git add markdown_files.csv markdown_files.json markdown_files.yaml')
os.system('git commit -m "Add generated markdown list" || echo "No changes to commit"')
os.system('git push origin main')

0 comments on commit 7384ff2

Please sign in to comment.