Skip to content

chore: auto-update README with MLSS list #12

chore: auto-update README with MLSS list

chore: auto-update README with MLSS list #12

name: Update README (push)
on:
push:
branches:
- master
paths:
- 'site/_data/summerschools.yml'
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install pyyaml python-dateutil
- name: Update README
run: |
python scripts/update_readme.py
- name: Commit changes
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git add README.md
git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-update README with MLSS list"
git push