mvn args as an input
Signed-off-by: Olivier Lamy <olamy@apache.org>
diff --git a/.github/workflows/maven-verify-with-its.yml b/.github/workflows/maven-verify-with-its.yml
index 4424a40..8bb287c 100644
--- a/.github/workflows/maven-verify-with-its.yml
+++ b/.github/workflows/maven-verify-with-its.yml
@@ -20,6 +20,12 @@
on:
workflow_call:
inputs:
+ maven_args:
+ description: The arguments to pass to Maven when building the code
+ required: false
+ default: --errors --batch-mode --show-version -P run-its -D"invoker.streamLogsOnFailures" verify
+ type: string
+
os-matrix:
description: 'os matrix as json array'
default: '[ "ubuntu-latest", "windows-latest", "macOS-latest" ]'
@@ -89,4 +95,4 @@
run: mvn --errors --batch-mode --show-version -P run-its -D"invoker.streamLogsOnFailures" verify
- name: Build Maven Site
- run: mvn --errors --batch-mode --show-version site
+ run: mvn ${{ inputs.maven_args }}