Skip to content

Commit

Permalink
Try to debug issue reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Mar 25, 2024
1 parent 4c472f1 commit e1f7ccd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .woodpecker/data-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ steps:
- ./ci/fetch-feeds.py timer
import:
image: ghcr.io/public-transport/transitous/import:latest
environment:
GITHUB_TOKEN:
from_secret: github_issues_token
commands:
- rm out/data -rf
- ./src/generate-attribution.py
Expand All @@ -33,6 +36,3 @@ steps:
- chmod 600 ./deploy_key
- "rsync -avz --progress --delete -e 'ssh -i ./deploy_key -p 22 -o StrictHostKeyChecking=no' out/ [email protected]:"
- rm deploy_key
environment:
GITHUB_TOKEN:
from_secret: github_issues_token
2 changes: 2 additions & 0 deletions ci/fetch-feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e1f7ccd

Please sign in to comment.