Update CORDIS data #16
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 CORDIS data | |
| on: | |
| schedule: | |
| - cron: '0 6 * * 1' # chaque lundi à 6h UTC | |
| workflow_dispatch: # bouton manuel depuis GitHub | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Run prepare_data.py | |
| run: python3 scripts/prepare_data.py | |
| - name: Commit and push if data changed | |
| run: | | |
| git config user.email "action@github.com" | |
| git config user.name "GitHub Action" | |
| git add data/inrae_projects.json data/status_overrides.json | |
| git diff --staged --quiet || git commit -m "Auto data update $(date +%Y-%m-%d)" | |
| git push |