Skip to content

Download Postnord data #8

Download Postnord data

Download Postnord data #8

name: Download Postnord data
on:
workflow_dispatch:
schedule:
- cron: '0 1 1 * *' # 1AM every 1st of the month
jobs:
download:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Fetch the data
run: python download_postnord.py
- name: Commit the data
uses: nick-fields/retry@v2
with:
timeout_seconds: 10
max_attempts: 5
command: |
git config --global user.name 'Pierre Mesure (Github Actions)'
git config --global user.email '[email protected]'
git config --global rebase.autoStash true
git pull --rebase
git add .
git commit -am "Update the data"
git push