diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 92983a555..edf2587aa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}"