ELI WMS sync #72
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: ELI WMS sync | |
on: | |
schedule: | |
#- cron: "0 0 * * *" # daily | |
- cron: '0 0 * * 0' # weekly | |
jobs: | |
wms_sync: | |
name: WMS_sync_cron | |
if: github.repository == 'osmlab/editor-layer-index' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip wheel | |
python -m pip install -r requirements.txt | |
- name: Run WMS sync | |
run: | | |
python scripts/sync_wms.py sources | |
- name: Test | |
run: | | |
python scripts/check.py $(find sources -type f -name '*.geojson') | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Sync WMS sources [skip travis] | |
delete-branch: true | |
draft: false | |
title: WMS Sync Bot | |
body: Update url and available_projections of WMS sources using scripts/sync_wms.py. Sources are tested with scripts/check.py before PR is created. Delete .github/workflows/sync_wms.yml to stop. |