diff --git a/.woodpecker/data-import.yml b/.woodpecker/data-import.yml index 9ff640b2..12b917a4 100644 --- a/.woodpecker/data-import.yml +++ b/.woodpecker/data-import.yml @@ -14,6 +14,9 @@ when: steps: fetch: image: ghcr.io/public-transport/transitous/import:latest + environment: + GITHUB_TOKEN: + from_secret: github_issues_token commands: - git submodule update --init --checkout --remote - ./ci/fetch-feeds.py timer @@ -33,6 +36,3 @@ steps: - chmod 600 ./deploy_key - "rsync -avz --progress --delete -e 'ssh -i ./deploy_key -p 22 -o StrictHostKeyChecking=no' out/ rsync@vm-motis.spline.de:" - rm deploy_key - environment: - GITHUB_TOKEN: - from_secret: github_issues_token diff --git a/ci/fetch-feeds.py b/ci/fetch-feeds.py index 2903f865..c3f57fc9 100755 --- a/ci/fetch-feeds.py +++ b/ci/fetch-feeds.py @@ -112,6 +112,8 @@ def do_fetch(feed: str): print(error.output.decode()) if "GITHUB_TOKEN" in os.environ: create_feed_error_issue(feed, error.output.decode(), os.environ["GITHUB_TOKEN"]) + else: + print("Can't report issue, because no token is set") match run_reason: