Skip to content

Commit

Permalink
refactor(gh): simplify the logic for the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanholz committed Aug 5, 2024
1 parent abf7339 commit 8a43683
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gha_runner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,9 @@ def main(): # pragma: no cover
provider = os.environ.get("INPUT_PROVIDER")
if provider is None:
raise Exception("Missing required input variable INPUT_PROVIDER")
gh_timeout_var = os.environ.get("INPUT_GH_TIMEOUT")
# Set the default timeout to 10 minutes
# Set the default timeout to 20 minutes
gh_timeout = int(os.environ.get("INPUT_GH_TIMEOUT", 1200))
gh_timeout = 1200
# If the user has set the timeout, we will use that instead
if gh_timeout_var is not None:
gh_timeout = int(gh_timeout_var)

gha_params = {
"token": os.environ["GH_PAT"],
Expand Down

0 comments on commit 8a43683

Please sign in to comment.