Weekly ontology scan #9
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: Weekly ontology scan | |
| on: | |
| schedule: | |
| # Every Friday at 23:00 UTC | |
| - cron: "00 00 * * 6" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python scripts/find_new_ontologies.py | |
| - name: Run scan | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| LOOKBACK_DAYS: "7" | |
| STATE_PATH: "data/state.json" | |
| OUTPUT_PATH: "data/latest.md" | |
| run: | | |
| python scripts/find_new_ontologies.py | |
| - name: Commit report and state | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@users.noreply.github.com" | |
| git add data/state.json data/latest.md | |
| git diff --staged --quiet || git commit -m "Weekly ontology scan update" | |
| git push |