Update Used By Section #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Used By Section | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Runs every Sunday at midnight | |
workflow_dispatch: # Allows for manual triggering of the workflow | |
jobs: | |
update-used-by: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Fetch repositories using this project | |
run: | | |
curl -H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/search/repositories?q=BlackMarlinExec+in:file \ | |
> used_by_repos.json | |
- name: Update README | |
run: | | |
python update_readme.py | |
- name: Commit and push changes | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add README.md | |
git commit -m 'Update Used By section' | |
git push |