Get data from Overpass #33884
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: Get data from Overpass | |
on: | |
schedule: | |
#- cron: '00 6 * * *' # run every day at 06:00 UTC | |
- cron: '*/60 * * * *' # run every hour | |
workflow_dispatch: ~ | |
jobs: | |
query_overpass: | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@main | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
sudo npm install -g osmtogeojson | |
- name: Get data from Overpass API | |
run: | | |
./run_queries.sh | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update overpass query results | |
commit_user_name: chnuessli | |
commit_user_email: chrigi@chnuessli.ch | |
commit_author: GitHub Action Bot <chrigi@chnuessli.ch> |