🚧 make pfaedle an action

This commit is contained in:
Charles P. 2024-06-01 20:11:38 +02:00
parent ea8185a784
commit e779970387
Signed by untrusted user who does not match committer: aeris
GPG key ID: 1708D5CC4095E76B

30
action.yml Normal file
View file

@ -0,0 +1,30 @@
name: 'Generate shapes from OSM data'
description: 'Use pfaedle to generate shapes from OSM data for a GTFS feed.'
inputs:
gtfs_file:
description: 'Path to GTFS .zip file.'
required: true
osm_file:
description: 'Path to OSM .pbf file.'
required: true
mot:
description: 'Mode of transport to generate shapes for.'
required: false
default: 'all'
output_file:
description: 'Path to output GTFS .zip file.'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '-i'
- ${{ inputs.gtfs_file }}
- '-x'
- ${{ inputs.osm_file }}
- '-m'
- ${{ inputs.mot }}
- '-o'
- ${{ inputs.output_file }}