Skip to content

Commit 201c699

Browse files
committed
Add runs-on parameter
1 parent a1301c3 commit 201c699

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
description: 'Custom run command for the Build and Deploy step (overrides default Maven command)'
1212
required: false
1313
type: string
14+
runs_on:
15+
description: 'Runner to use for the build job (defaults to ubuntu-latest)'
16+
required: false
17+
type: string
1418
secrets:
1519
ARTIFACTORY_USERNAME:
1620
required: true
@@ -146,7 +150,7 @@ jobs:
146150
build:
147151
name: Build ${{ matrix.branch }} (JDK ${{ matrix.java-version }})
148152
needs: setup
149-
runs-on: ubuntu-latest
153+
runs-on: ${{ inputs.runs_on || 'ubuntu-latest' }}
150154
timeout-minutes: 60
151155
strategy:
152156
fail-fast: false

0 commit comments

Comments
 (0)