Skip to content

Commit

Permalink
add prod, still in dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte committed Nov 13, 2024
1 parent 58c1589 commit 8221f3f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/update-universes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:

jobs:

# FIXME: duplicate on prod
run-demo-update:
run-update:
runs-on: ubuntu-latest

steps:
Expand All @@ -27,20 +26,26 @@ jobs:
pip install --upgrade pip
pip install -r requirements.txt
# 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: |
python -u feed-universe.py universe-demo.yaml --dry-run 2>&1 | tee logs/run_log_demo.txt
- name: Update prod universe
env:
DATAGOUV_URL: https://www.data.gouv.fr
DATAGOUV_API_KEY: ${{ secrets.DATAGOUV_API_KEY_PROD }}
run: |
python -u feed-universe.py universe-prod.yaml --dry-run 2>&1 | tee logs/run_log_prod.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"
git add logs/
git commit -m "Update daily run logs"
- name: Push changes
run: |
Expand Down

0 comments on commit 8221f3f

Please sign in to comment.