Skip to content

Commit

Permalink
Fix timeout default setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 20, 2024
1 parent 2e32640 commit ca356d1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,13 @@ jobs:
""")
# Load timeout from workflow input, or use a default one.
timeout = r"${{ matrix.bin_name }}"
assert timeout.isdigit()
timeout = int(timeout)
if not timeout:
timeout = r"${{ matrix.bin_name }}".strip()
if timeout:
assert timeout.isdigit()
timeout = int(timeout)
assert timeout > 0
else:
timeout = 60
assert timeout > 0
# Resolve binary path.
bin_name = r"${{ matrix.bin_name }}"
Expand Down

0 comments on commit ca356d1

Please sign in to comment.