From ca356d125f738b1b078604a5e03b38366ca0a743 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Wed, 20 Nov 2024 06:27:04 +0400 Subject: [PATCH] Fix timeout default setting --- .github/workflows/release.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 }}"