Skip to content
Merged
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
10 changes: 8 additions & 2 deletions tools/fpga_releaser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ def main():
if args.zip:
project_info.local = True

# Only require a GitHub token when we actually need to talk to GitHub
needs_gh = not (args.skip_gh or args.zip is None)
if args.skip_gh and args.zip is None:
print("--skip-gh requires --zip or --local to supply a build archive")
sys.exit(1)

# Only require a GitHub token when we actually need to talk to GitHub.
# With --skip-gh we have a local archive (enforced above) and won't push a
# release, so the API client stays unused.
needs_gh = not args.skip_gh
api = None
if needs_gh:
if args.token is not None:
Expand Down
Loading