Update Objectives Catalog #119
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: Update Objectives Catalog | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "23 */12 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| refresh-objectives-catalog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Build maprunner_data.csv | |
| run: python data/csv_maker.py | |
| - name: Embed CSV into app.js | |
| run: python data/embed_catalog_into_app.py | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add data/maprunner_data.csv app.js | |
| if git diff --cached --quiet; then | |
| echo "No catalog changes." | |
| exit 0 | |
| fi | |
| git commit -m "chore: refresh objectives catalog" | |
| git push |