-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.19 KB
/
manually-build-pack.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
42
43
name: Manually build packs
on:
workflow_dispatch:
inputs:
packs:
description: |
Space-separated list of pack IDs you want to build,
e.g. "us-ca-oakland us-ca-la"
required: true
type: string
use_pmtiles:
description: Output PMTiles instead of MBTiles
required: false
type: boolean
jobs:
list-packs:
name: List packs
runs-on: ubuntu-latest
if: ${{ inputs.packs }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
# Set the matrix output to a JSON array from a space-separated string
# from the workflow_dispatch input
- id: set-matrix
run: |
python -c "import sys, json; print('matrix='+json.dumps('${{ inputs.packs }}'.split()))" >> $GITHUB_OUTPUT
build-packs:
name: Build pack
needs: list-packs
strategy:
fail-fast: false
matrix:
pack: ${{ fromJson(needs.list-packs.outputs.matrix) }}
uses: kueda/underfoot/.github/workflows/build-pack.yml@main
with:
pack: ${{ matrix.pack }}
use_pmtiles: ${{ github.event.inputs.use_pmtiles == 'true' }}
secrets: inherit