Skip to content

bg: Use official BDZ feeds #1651

bg: Use official BDZ feeds

bg: Use official BDZ feeds #1651

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Jonah Brüchert <jbb@kaidan.im>
# SPDX-License-Identifier: CC0-1.0
name: Verify new data can be imported
on:
pull_request:
paths:
- "feeds/**"
jobs:
test-import:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Fetch branches and submodules
run: git fetch --unshallow && git fetch --all && git submodule update --init --checkout --remote
- name: Build docker images
run: docker build -t transitous . -f ci/container/Containerfile
- name: Verify that new feeds can be downloaded and parsed
env:
TRANSITOUS_FEED_PROXY_KEY: ${{ secrets.TRANSITOUS_FEED_PROXY_KEY }}
run: |
printf "%s" "$TRANSITOUS_FEED_PROXY_KEY" > /tmp/feed-proxy.key
find . -type d -exec chmod 777 {} \;
docker run -v $PWD:/transitous -v /tmp/feed-proxy.key:/tmp/feed-proxy.key -e TRANSITOUS_FEED_PROXY_KEY_FILE=/tmp/feed-proxy.key -w /transitous transitous ci/fetch-feeds.py merge-request
docker run -v $PWD:/transitous -w /transitous transitous src/generate-motis-config.py