Skip to content

Update Org Profile Stats #44

Update Org Profile Stats

Update Org Profile Stats #44

Workflow file for this run

name: Update Org Profile Stats
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Generate SVGs
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
python generate_svg.py
- name: Commit and push
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add profile/dark_mode.svg profile/light_mode.svg cache/
git diff --staged --quiet || git commit -m "Update stats"
git push