-
-
Notifications
You must be signed in to change notification settings - Fork 32
46 lines (39 loc) · 1.2 KB
/
update_providers.yaml
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
42
43
44
45
name: Update leaflet providers/compress JSON
on:
schedule:
- cron: '42 23 1,15 * *'
workflow_dispatch:
inputs:
version:
description: Manual update reason
default: refresh
required: false
jobs:
unittests:
name: Update leaflet providers
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
environment-file: [ci/update_providers.yaml]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
- name: Parse leaflet providers/compress output
shell: bash -l {0}
run: |
make update-leaflet
make compress
- name: Commit files
run: |
git config --global user.name 'Martin Fleischmann'
git config --global user.email '[email protected]'
git add provider_sources/leaflet-providers-parsed.json
git add xyzservices/data/providers.json
git commit -am "Update leaflet providers/compress JSON [automated]"
git push