-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.68 KB
/
osm2gtfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: OSM2GTFS for Addis Ababa
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout AddisMapTransit-gtfs
uses: actions/checkout@v3
- name: Checkout osm2gtfs
uses: actions/checkout@v3
with:
repository: AddisMap/osm2gtfs
ref: refs/heads/master
path: osm2gtfs
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: |
cd osm2gtfs
pip install -e .
- name: Run
run: |
cd osm2gtfs
osm2gtfs -c osm2gtfs/creators/et_addisababa/config.json --refresh-all 2>&1 | tee ../generation.log
cp data/et-addisababa.zip ../
osm2gtfs -c osm2gtfs/creators/et_addisababa/config_bus.json --refresh-all 2>&1 | tee ../generation-bus.log
cp data/et-addisababa-bus.zip ../
osm2gtfs -c osm2gtfs/creators/et_addisababa/config_bus_AB.json --refresh-all 2>&1 | tee ../generation-bus-ab.log
cp data/et-addisababa-bus-ab.zip ../
osm2gtfs -c osm2gtfs/creators/et_addisababa/config_bus_SH.json --refresh-all 2>&1 | tee ../generation-bus-sh.log
cp data/et-addisababa-bus-sh.zip ../
osm2gtfs -c osm2gtfs/creators/et_addisababa/config_minibus.json --refresh-all 2>&1 | tee ../generation-minibus.log
cp data/et-addisababa-minibus.zip ../
cd ../
rm -r osm2gtfs
unzip -o et-addisababa.zip
ls -al
- name: Commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions