Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/test-import.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]>
# SPDX-License-Identifier: CC0-1.0

name: Verfy new data can be imported
name: Verify new data can be imported

on:
pull_request:
Expand All @@ -18,6 +18,21 @@ jobs:
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: regenerate austria and france
run: |
docker run -v $PWD:/transitous -w /transitous transitous src/generate-austria.py
docker run -v $PWD:/transitous -w /transitous transitous src/generate-france.py
if [[ -n $(git diff --exit-code feeds ) ]]; then
git config user.name "Transitous-Bot"
git config user.email "[email protected]"
git checkout -B work/transitous-bot/regenerate-feeds
git add feeds/fr.json feeds/at.json
git commit -m "Update generated feeds"
git push --set-upstream origin work/transitous-bot/regenerate-feeds
gh pr create -B work/transitous-bot/regenerate-feeds -H main --title 'Update French or Austria feeds' --body 'Created by Github action'
fi
env:
GH_TOKEN: ${{ github.token }}
- name: Verify that new feeds can be downloaded and parsed
run: |
find . -type d -exec chmod 777 {} \;
Expand Down
Loading
Loading