Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ on:
required: false
type: boolean
default: false
maven_version:
description: 'The Maven version to use. Defaults to version of the runner image'
required: false
type: string
# Can't have dynamic default of the current version of Maven in the runner so hard-code it.
default: '3.9.14'

# cancel in-progress runs of the same workflow
# to avoid unnecessary runs when multiple commits pushed
Expand All @@ -52,6 +58,11 @@ jobs:
distribution: 'temurin'
cache: maven

- name: Set up Maven '${{ inputs.maven_version }}'
uses: stCarolas/setup-maven@12eb41b233df95d49b0c11fc1b5bc8312e5d4ce0 # v5.1
with:
maven-version: '${{ inputs.maven_version }}'

- name: Build Command invocation
run: bash -c "${INPUTS_BUILD_COMMAND}"
env:
Expand Down