Skip to content

Import data

Import data #21

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]>
# SPDX-License-Identifier: CC0-1.0
name: Import data
on:
push:
branches:
- main
workflow_dispatch:
jobs:
import:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Fetch submodules
run: git submodule update --init --checkout --remote
- name: Build docker images
run: docker build -t transitous . -f ci/container/Containerfile
- name: Restore cached feeds
uses: actions/cache/restore@v4
with:
path: |
downloads/
out/
key: feeds
- name: Fetch GTFS-Feeds
run: docker run -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py timer
- name: Generate MOTIS config file
run: docker run --env PYTHONPATH=src -v $PWD:/transitous -w /transitous transitous ci/generate-motis-config.py
- name: Cache feeds
uses: actions/cache/save@v4
with:
path: |
downloads/
out/
key: feeds