diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..6fe43de --- /dev/null +++ b/action.yml @@ -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 }} \ No newline at end of file