From e7799703878f14ec9a90098de1820097c0bfa686 Mon Sep 17 00:00:00 2001 From: "Charles P." Date: Sat, 1 Jun 2024 20:11:38 +0200 Subject: [PATCH] :construction: make pfaedle an action --- action.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 action.yml 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