Skip to content

more readme updates

more readme updates #5

Workflow file for this run

name: Update README Download Badge
on:
schedule:
- cron: "0 11 * * *" # 6 AM EST = 11 AM UTC
workflow_dispatch:
push:
paths:
- .github/workflows/update-readme.yml
- readme.py
- README.template.md
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Jinja2
run: pip install Jinja2 requests
- name: Render README with PePy stats
run: python3 readme.py
- name: Commit and push if README changed
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
if [[ -n $(git status --porcelain README.md) ]]; then
git add README.md
git commit -m "chore: update README badge [skip release]"
git push https://x-access-token:$GH_PAT@github.com/${{ github.repository }}.git HEAD:main
else
echo "No changes to commit."
fi