Skip to content

Update repo activity #219

Update repo activity

Update repo activity #219

Workflow file for this run

name: Update repo activity
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
refresh:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Update README activity badges
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python scripts/update_repo_activity.py
- name: Commit and push if changed
run: |
if git diff --quiet; then
echo "No changes to commit"
else
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "chore: refresh README activity badges"
git push
fi