Skip to content

Manually build packs #57

Manually build packs

Manually build packs #57

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@pmtiles

Check failure on line 39 in .github/workflows/manually-build-pack.yml

View workflow run for this annotation

GitHub Actions / Manually build packs

Invalid workflow file

The workflow is not valid. In .github/workflows/manually-build-pack.yml (Line: 39, Col: 11): Error from called workflow kueda/underfoot/.github/workflows/build-pack.yml@pmtiles (Line: 53, Col: 14): Unexpected symbol: '?'. Located at position 20 within expression: inputs.use_pmtiles ? '--use-pmtiles' : '' In .github/workflows/manually-build-pack.yml (Line: 39, Col: 11): Error from called workflow kueda/underfoot/.github/workflows/build-pack.yml@pmtiles (Line: 64, Col: 17): Unexpected symbol: '?'. Located at position 20 within expression: inputs.use_pmtiles ? 'pmtiles' : 'mbtiles'
with:
pack: ${{ matrix.pack }}
use_pmtiles: ${{ inputs.use_pmtiles }}
secrets: inherit