Skip to content

Generate GitHub Stats #45630

Generate GitHub Stats

Generate GitHub Stats #45630

Workflow file for this run

name: Generate GitHub Stats
on:
push:
branches: [ main ]
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
cache: 'pip'
- name: Install requirements
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r requirements.txt
- name: Generate images
run: |
git pull
python3 generate_images.py
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXCLUDE_FORKED_REPOS: true
- name: Commit to the repo
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m 'Update generated files' || true
git push --force