Update Layers #151
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 Layers | |
on: | |
schedule: | |
# weekly | |
- cron: '0 0 * * 0' | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/update-layers.yml | |
workflow_dispatch: | |
jobs: | |
update-layers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get source code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Update layers | |
run: | | |
cd swiss_locator/map_geo_admin | |
./download_layer_data.py | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: update map.geo.admin.ch layers | |
title: Automated updates to map.geo.admin.ch layers | |
body: | |
branch: update-layers |