Compare commits

...

2 commits

Author SHA1 Message Date
70a882ee44
🚧 remove sample feed in repo
Some checks failed
GTFS Change Route Type / modify_routes (push) Failing after 1s
2024-06-01 22:49:54 +02:00
2c050aac9b
🚚 rename to Change Route Type Action 2024-06-01 22:49:34 +02:00
5 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
name: GTFS Route Modification
name: GTFS Change Route Type
on: [push]
@ -6,10 +6,10 @@ jobs:
modify_routes:
runs-on: docker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download sample feed
run: curl -o sample-feed.zip https://developers.google.com/static/transit/gtfs/examples/sample-feed.zip
- name: Run GTFS Route Modifier
- name: Change some route types
uses: gtfs-actions/route-type-modifier@main
with:
gtfs_file: 'sample-feed.zip'

View file

@ -1,7 +1,7 @@
# GTFS Route Type Modifier
# GTFS Change Route Type Action
### Usage
```yaml
name: GTFS Route Type Modification
name: GTFS Change Route Type
on: [push]
@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4
- name: Run GTFS Route Modifier
uses: gtfs-actions/route-type-modifier@v1
uses: gtfs-actions/change-route-type@main
with:
gtfs_file: 'path/to/your/gtfs.zip'
routes: '1:3,2:5'

View file

@ -1,4 +1,4 @@
name: 'GTFS Route Type Modifier'
name: 'GTFS Change Route Type'
description: 'Change route type in a GTFS feed.'
inputs:

View file

@ -7,7 +7,7 @@ import logging
def modify_routes(gtfs_file, routes, output_file=None):
logging.info(f"Running GTFS Route Type Modifier")
logging.info(f"Running GTFS Change Route Type")
logging.info(f"GTFS File: {gtfs_file}")
logging.info(f"Routes to Change: {routes}")
logging.info(f"Output File: {output_file}")

Binary file not shown.