Skip to content

Commit fd3969f

Browse files
committed
fix faulty best-matching runner to use
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 9580d3a commit fd3969f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/bake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
uses: actions/github-script@v8
174174
env:
175175
INPUT_MATRIX-SIZE-LIMIT: ${{ env.MATRIX_SIZE_LIMIT }}
176-
INPUT_RUNS-ON: ${{ inputs.runs-on || 'ubuntu-latest' }}
176+
INPUT_RUNS-ON: ${{ inputs.runs-on }}
177177
INPUT_CONTEXT: ${{ inputs.context }}
178178
INPUT_TARGET: ${{ inputs.target }}
179179
INPUT_BAKE-ALLOW: ${{ inputs.bake-allow }}
@@ -236,7 +236,7 @@ jobs:
236236
} else if (platforms.length === 0) {
237237
includes.push({
238238
index: 0,
239-
'runs-on': inpRunsOn
239+
'runs-on': inpRunsOn || 'ubuntu-latest'
240240
});
241241
} else {
242242
platforms.forEach((platform, index) => {

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
uses: actions/github-script@v8
173173
env:
174174
INPUT_MATRIX-SIZE-LIMIT: ${{ env.MATRIX_SIZE_LIMIT }}
175-
INPUT_RUNS-ON: ${{ inputs.runs-on || 'ubuntu-latest' }}
175+
INPUT_RUNS-ON: ${{ inputs.runs-on }}
176176
INPUT_BUILD-PLATFORMS: ${{ inputs.build-platforms }}
177177
with:
178178
script: |
@@ -190,7 +190,7 @@ jobs:
190190
} else if (inpBuildPlatforms.length === 0) {
191191
includes.push({
192192
index: 0,
193-
'runs-on': inpRunsOn
193+
'runs-on': inpRunsOn || 'ubuntu-latest'
194194
});
195195
} else {
196196
inpBuildPlatforms.forEach((platform, index) => {

0 commit comments

Comments
 (0)