Skip to content

Commit

Permalink
add badge in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaweh2 committed Aug 9, 2023
1 parent 8ff5bef commit 7836cfe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions generate_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,18 @@ def get_cefi_list():

# finalize the markdown file and output
mdFile.create_md_file()

###### adding link check badge
# Read the existing content of readme.md
with open('README.md', 'r', encoding='utf-8') as file:
existing_content = file.read()

# New line of text to add at the top
badge = "![Resource Link Checked](https://github.com/NOAA-PSL/CEFI-info-hub-list/actions/workflows/gha_check_link_daily.yml/badge.svg)\n"

# Combine the new line and existing content
updated_content = badge + existing_content

# Write the updated content back to readme.md
with open('README.md', 'w', encoding='utf-8') as file:
file.write(updated_content)

0 comments on commit 7836cfe

Please sign in to comment.