Skip to content

Update Data

Update Data #232

Workflow file for this run

name: Update Data
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
download-json:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4.1.7
- name: pull changes from remote
run: git pull origin
- name: setup python
uses: actions/setup-python@v5.1.0
with:
python-version: '3.12'
- name: install mudules
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute python script
run: python script.py
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "[update] Update GeoJSON data" --allow-empty)
- name: push changes
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main