From eba8cbebf00cde208d9935855dc88e2719266bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Mon, 25 Mar 2024 01:16:44 +0100 Subject: [PATCH] Try to debug issue reporting --- .woodpecker/data-import.yml | 6 +++--- ci/fetch-feeds.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/data-import.yml b/.woodpecker/data-import.yml index 9ff640b2..c56bf9b0 100644 --- a/.woodpecker/data-import.yml +++ b/.woodpecker/data-import.yml @@ -28,11 +28,11 @@ steps: push: image: ghcr.io/public-transport/transitous/import:latest secrets: [ RSYNC_PRIVATE_KEY ] + environment: + GITHUB_TOKEN: + from_secret: github_issues_token commands: - echo "$${RSYNC_PRIVATE_KEY}" > deploy_key - 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..6d8a8316 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 + prit("Can't report issue, because no token is set") match run_reason: