From a8354e235b671671d5becda0e40e024a3ecdfd2b Mon Sep 17 00:00:00 2001 From: MohamadTahir Date: Thu, 2 Feb 2023 11:42:04 +0300 Subject: [PATCH] adds timeout input --- .github/workflows/workflow.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index c70fb47..89a0892 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -25,6 +25,10 @@ on: type: string default: reg.dev.krd required: false + timeout: + type: number + default: 10 + required: false runs-on: type: string @@ -43,7 +47,7 @@ jobs: build-push: name: Build and Push runs-on: ${{ fromJson(inputs.runs-on) }} - timeout-minutes: 10 + timeout-minutes: ${{ inputs.timeout }} outputs: tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }} tags: ${{ steps.meta.outputs.tags }}