fix python run #2
Workflow file for this run
This file contains 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 universes | |
on: | |
schedule: | |
- cron: '27 5 * * *' | |
# FIXME: remove | |
push: | |
branches: | |
- feat/ci | |
jobs: | |
# FIXME: duplicate on prod | |
run-demo-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
# FIXME: remove dry-run | |
- name: Update demo universe | |
env: | |
DATAGOUV_URL: https://demo.data.gouv.fr | |
DATAGOUV_API_KEY: ${{ secrets.DATAGOUV_API_KEY_DEMO }} | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
python feed-universe.py universe-demo.yaml --dry-run > logs/run_log_demo.txt | |
- name: Commit Run Logs | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add logs/run_log_demo.txt | |
git commit -m "Update daily run log for demo" | |
- name: Push changes | |
run: | | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |