-
Notifications
You must be signed in to change notification settings - Fork 258
41 lines (34 loc) · 1.16 KB
/
sync_wms.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.