Skip to content

Commit 726db53

Browse files
committed
added timeout inputs for called workflows
1 parent 28f4cb0 commit 726db53

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/build-product.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
timeout:
77
description: "Timeout in minutes for each job"
8-
required: true
8+
type: string
99
default: 30
1010
secrets:
1111
DATAVISYN_BOT_REPO_TOKEN:
@@ -94,7 +94,6 @@ jobs:
9494
time_zone: ${{ env.TIME_ZONE }}
9595
build-single:
9696
needs: prepare-build
97-
timeout-minutes: ${{ fromJSON(github.event.inputs.timeout) }}
9897
if: ${{ needs.prepare-build.outputs.create_workspace != 'true' && needs.prepare-build.outputs.components != '[]' && needs.prepare-build.outputs.components != ''}}
9998
strategy:
10099
fail-fast: true
@@ -107,10 +106,10 @@ jobs:
107106
image_tag2: ${{ needs.prepare-build.outputs.image_tag2 }}
108107
build_time: ${{ needs.prepare-build.outputs.build_time }}
109108
stage: ${{ needs.prepare-build.outputs.stage }}
109+
timeout: ${{ inputs.timeout }}
110110
secrets: inherit
111111
build-workspace:
112112
needs: prepare-build
113-
timeout-minutes: ${{ fromJSON(github.event.inputs.timeout) }}
114113
if: ${{ needs.prepare-build.outputs.create_workspace == 'true' && needs.prepare-build.outputs.components != '[]' && needs.prepare-build.outputs.components != ''}}
115114
strategy:
116115
fail-fast: true
@@ -123,6 +122,7 @@ jobs:
123122
image_tag2: ${{ needs.prepare-build.outputs.image_tag2 }}
124123
build_time: ${{ needs.prepare-build.outputs.build_time }}
125124
stage: ${{ needs.prepare-build.outputs.stage }}
125+
timeout: ${{ inputs.timeout }}
126126
secrets: inherit
127127
post-build:
128128
needs: [prepare-build, build-single, build-workspace]

.github/workflows/build-single-product-part.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ on:
4444
description: "stage for the image (develop or production) depending on the branch name"
4545
required: true
4646
type: string
47+
timeout:
48+
description: "Timeout in minutes for each job"
49+
type: string
50+
default: 30
4751
env:
4852
TIME_ZONE: "Europe/Vienna"
4953
NODE_VERSION: "16.16"
@@ -60,6 +64,7 @@ permissions:
6064
jobs:
6165
build-components:
6266
runs-on: ubuntu-20.04
67+
timeout-minutes: ${{ fromJSON(github.event.inputs.timeout) }}
6368
steps:
6469
# checkout specific repository
6570
- uses: actions/checkout@v3

.github/workflows/build-workspace-product-part.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ on:
4444
description: "stage for the image (develop or production) depending on the branch name"
4545
required: true
4646
type: string
47+
timeout:
48+
description: "Timeout in minutes for each job"
49+
type: string
50+
default: 30
4751
env:
4852
VISYN_SCRIPTS_VERSION: "develop"
4953
TIME_ZONE: "Europe/Vienna"
@@ -61,6 +65,7 @@ permissions:
6165
jobs:
6266
build-components:
6367
runs-on: ubuntu-20.04
68+
timeout-minutes: ${{ fromJSON(github.event.inputs.timeout) }}
6469
steps:
6570
# checkout specific repository
6671
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)