e2f9679c22
All checks were successful
GTFS Shapes Generation / modify_routes (push) Successful in 58s
waiting for https://codeberg.org/forgejo/forgejo/issues/3485 to be fixed
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
name: GTFS Shapes Generation
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
modify_routes:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Download sample feed
|
|
run: curl -o sample-feed.zip https://download.data.public.lu/resources/horaires-et-arrets-des-transport-publics-gtfs/20240530-080402/gtfs-20240529-20240621.zip
|
|
|
|
- name: Download OSM data
|
|
run: curl -o luxembourg-latest.osm.pbf https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf
|
|
|
|
- name: Convert OSM data to .osm
|
|
run: |
|
|
apt update && \
|
|
apt install -y osmctools && \
|
|
osmconvert luxembourg-latest.osm.pbf -o=luxembourg-latest.osm
|
|
|
|
- name: Run Shape Generation
|
|
uses: gtfs-actions/generate-shapes@main
|
|
with:
|
|
gtfs_file: sample-feed.zip
|
|
osm_file: luxembourg-latest.osm
|
|
mot: bus
|
|
output_file: modified-feed.zip
|
|
|
|
- name: Upload modified feed
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: modified-feed
|
|
path: modified-feed.zip |