Skip to content

Update Live Badges

Update Live Badges #51

Workflow file for this run

name: Update Live Badges
on:
schedule:
- cron: '0 0 * * *' # Daily at midnight
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
update-badges:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run update script
run: python scripts/update_badges.py
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git diff --quiet && git diff --staged --quiet || (git commit -m "Update live badges" && git push)