Compare commits
2 commits
d037da6265
...
70a882ee44
Author | SHA1 | Date | |
---|---|---|---|
70a882ee44 | |||
2c050aac9b |
5 changed files with 9 additions and 9 deletions
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: 'GTFS Route Type Modifier'
|
||||
name: 'GTFS Change Route Type'
|
||||
description: 'Change route type in a GTFS feed.'
|
||||
|
||||
inputs:
|
||||
|
|
|
@ -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}")
|
||||
|
|
BIN
sample-feed.zip
BIN
sample-feed.zip
Binary file not shown.
Loading…
Reference in a new issue