Skip to content

Commit 2e437fd

Browse files
committedJan 11, 2025
Handle previously empty MAVEN_OPTS alongside bash set -u
1 parent 62f9cd7 commit 2e437fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/actions/maven/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
2323
if [ -n "${{ inputs.JVMOPT_NATIVE_ACCESS }}" ]; then
2424
echo "Allow native access to modules/classes: ${{ inputs.JVMOPT_NATIVE_ACCESS }}"
25-
export MAVEN_OPTS="$MAVEN_OPTS --enable-native-access=${{ inputs.JVMOPT_NATIVE_ACCESS }}"
25+
export MAVEN_OPTS="--enable-native-access=${{ inputs.JVMOPT_NATIVE_ACCESS }} ${MAVEN_OPTS:-}"
2626
fi
2727
2828
mvn -B -e -fae --show-version \

0 commit comments

Comments
 (0)