Skip to content

Update CORDIS data

Update CORDIS data #16

Workflow file for this run

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