Update data #458
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 data | |
on: | |
schedule: | |
- cron: '0 5 * * *' | |
workflow_dispatch: | |
jobs: | |
update-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get export.xml | |
run: | | |
curl https://export.via-humanis-immobilier.fr/export.xml -u ${{secrets.HTTP_USERNAME}}:${{secrets.HTTP_PASSWORD}} -o ./data/export.xml | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: | | |
node tasks/update-data.js | |
- name: Commit and push | |
run: | | |
git config --global user.name "Guillaume Grossetie" | |
git config --global user.email "ggrossetie@yuzutech.fr" | |
git add public/data/pericles/images | |
git commit -a -m "Update Real Estate Assets" || true | |
git push |