Skip to content

Commit 487fa0f

Browse files
authored
Add runs_on to legacy product build
1 parent efcc906 commit 487fa0f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/build-product.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: build-product
22

33
on:
44
workflow_call:
5+
inputs:
6+
runs_on:
7+
type: string
8+
required: false
9+
default: "ubuntu-22.04"
510
secrets:
611
DATAVISYN_BOT_REPO_TOKEN:
712
required: false
@@ -97,6 +102,7 @@ jobs:
97102
image_tag2: ${{ needs.prepare-build.outputs.image_tag2 }}
98103
build_time: ${{ needs.prepare-build.outputs.build_time }}
99104
stage: ${{ needs.prepare-build.outputs.stage }}
105+
runs_on: ${{ inputs.runs_on }}
100106
secrets: inherit
101107
build-workspace:
102108
needs: prepare-build

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ on:
4646
type: number
4747
required: false
4848
default: 60
49+
runs_on:
50+
type: string
51+
required: false
52+
default: "ubuntu-22.04"
4953
env:
5054
TIME_ZONE: "Europe/Vienna"
5155
NODE_VERSION: "20.9"
@@ -62,7 +66,7 @@ permissions:
6266
jobs:
6367
build-components:
6468
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
65-
runs-on: ubuntu-22.04
69+
runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
6670
steps:
6771
- name: Remove unnecessary files
6872
run: |

0 commit comments

Comments
 (0)