From 2cea7441b4f61f095a44ff8ed0949a87ec28ed2d Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Thu, 21 Nov 2024 13:39:32 +0000 Subject: [PATCH] timeout minutes --- .github/workflows/build-clients.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-clients.yml b/.github/workflows/build-clients.yml index b5a4710f..a2502367 100644 --- a/.github/workflows/build-clients.yml +++ b/.github/workflows/build-clients.yml @@ -1,8 +1,13 @@ name: Build clients on newest UMD on: - workflow_call: workflow_dispatch: + inputs: + timeout: + required: true + description: 'The timeout for the job in minutes' + type: number + default: 30 pull_request: branches: ["main"] push: @@ -10,7 +15,9 @@ on: jobs: build-tt-metal: - timeout-minutes: 20 + # Due to parsing bug, fromJSON is used to convert string to number. + # In pull_request or push events, the input context is not available, stating the default again here. + timeout-minutes: ${{ fromJSON(inputs.timeout || '30') }} strategy: fail-fast: false matrix: