Skip to content

Update Used By Section #16

Update Used By Section

Update Used By Section #16

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