add carousel #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Regenerate README | |
| # "CSV update updates the board": whenever the source CSV, category config, or | |
| # template changes on main, regenerate README.md and commit it. The approved-PR | |
| # flow already includes a regenerated README, so this mainly backstops manual edits. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - THE_RESOURCES_TABLE_NEW.csv | |
| - config.yaml | |
| - templates/README.template.md | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| regenerate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # commits the regenerated README.md back to main | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install pyyaml | |
| - name: Regenerate README from the CSV | |
| run: python generate_readme.py | |
| - name: Commit if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git diff --staged --quiet || (git commit -m "chore: regenerate README from CSV [skip ci]" && git push) |