diff --git a/test/mvn/action.yaml b/test/mvn/action.yaml index e345d11..65d59a2 100644 --- a/test/mvn/action.yaml +++ b/test/mvn/action.yaml @@ -5,21 +5,25 @@ inputs: application-properties: description: "Value of application properties from secrets" required: false + override-properties: + description: "Value of override properties" + default: "false" + required: false path: description: "Path of Maven Project, default ./" required: false java-version: - description: 'The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file, default `21`' + description: "The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file, default `21`" default: "21" required: false distribution: - description: 'Java distribution. See the list of supported distributions in README file, default `temurin`' + description: "Java distribution. See the list of supported distributions in README file, default `temurin`" default: "temurin" required: false runs: using: "composite" - steps: + steps: - name: Using Java ${{ inputs.java-version }} ${{ inputs.distribution }} uses: actions/setup-java@v4.7.0 with: diff --git a/test/mvn/mvntest.sh b/test/mvn/mvntest.sh index 3b99765..a59b2bb 100755 --- a/test/mvn/mvntest.sh +++ b/test/mvn/mvntest.sh @@ -11,6 +11,11 @@ override_config() { cd $WORK_DIR fi + if [[ "${OVERRIDE_PROPERTIES:-false}" != "true" ]]; then + echo "Skipping override_config karena OVERRIDE_PROPERTIES != true" + return + fi + if [[ -n "$APPLICATION_PROPERTIES" ]]; then if [[ -f src/main/resources/application.properties ]]; then echo "Rewrite application.properties"