Skip to content

Update README Stats #101

Update README Stats

Update README Stats #101

Workflow file for this run

name: Update README Stats
on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # Allows me to trigger it manually
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Generate New README
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python src/main.py
- name: Commit and Push Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
git commit -m "docs: auto-update README stats" || echo "No changes to commit"
git push