Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
name: Update README

on:
  schedule:
    - cron: '0 0 */3 * *'
  workflow_dispatch:

jobs:
  update-readme:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4

      - name: Generate README
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: python3 generate_readme.py

      - name: Commit and push
        run: |
          git config user.name "readme-bot"
          git config user.email "actions@github.com"
          git add README.md
          git diff --quiet --cached || git commit -m "Update README with latest data"
          git push