Compare commits
No commits in common. "70a882ee4450bb4bc5c02191f54ca12c23a7735b" and "d037da6265d0f22f0d45d0c748575020b3379e80" have entirely different histories.
70a882ee44
...
d037da6265
5 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
name: GTFS Change Route Type
|
||||
name: GTFS Route Modification
|
||||
|
||||
on: [push]
|
||||
|
||||
|
@ -6,10 +6,10 @@ jobs:
|
|||
modify_routes:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Download sample feed
|
||||
run: curl -o sample-feed.zip https://developers.google.com/static/transit/gtfs/examples/sample-feed.zip
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Change some route types
|
||||
- name: Run GTFS Route Modifier
|
||||
uses: gtfs-actions/route-type-modifier@main
|
||||
with:
|
||||
gtfs_file: 'sample-feed.zip'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# GTFS Change Route Type Action
|
||||
# GTFS Route Type Modifier
|
||||
### Usage
|
||||
```yaml
|
||||
name: GTFS Change Route Type
|
||||
name: GTFS Route Type Modification
|
||||
|
||||
on: [push]
|
||||
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run GTFS Route Modifier
|
||||
uses: gtfs-actions/change-route-type@main
|
||||
uses: gtfs-actions/route-type-modifier@v1
|
||||
with:
|
||||
gtfs_file: 'path/to/your/gtfs.zip'
|
||||
routes: '1:3,2:5'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: 'GTFS Change Route Type'
|
||||
name: 'GTFS Route Type Modifier'
|
||||
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 Change Route Type")
|
||||
logging.info(f"Running GTFS Route Type Modifier")
|
||||
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
Normal file
BIN
sample-feed.zip
Normal file
Binary file not shown.
Loading…
Reference in a new issue