diff --git a/.github/workflows/pro-extension-test.yml b/.github/workflows/pro-extension-test.yml index e1981a77..ec71fe4f 100644 --- a/.github/workflows/pro-extension-test.yml +++ b/.github/workflows/pro-extension-test.yml @@ -300,12 +300,21 @@ jobs: - name: Run Tests if: ${{ !inputs.nightly }} shell: bash - run: mvn -B test -P '${{ inputs.mavenProfiles }}' ${${{ inputs.extraMavenArgs }}:+\"${{ inputs.extraMavenArgs }}\"} - + run: | + if [ -n "${{ inputs.extraMavenArgs }}" ]; then + mvn -B test -P '${{ inputs.mavenProfiles }}' "${{ inputs.extraMavenArgs }}" + else + mvn -B test -P '${{ inputs.mavenProfiles }}' + fi + - name: Run Tests if: ${{ inputs.nightly }} - shell: bash - run: mvn -B test -P '${{ inputs.mavenProfiles }}' ${${{ inputs.extraMavenArgs }}:+\"${{ inputs.extraMavenArgs }}\"} "-Dliquibase.version=master-SNAPSHOT" + run: | + if [ -n "${{ inputs.extraMavenArgs }}" ]; then + mvn -B test -P '${{ inputs.mavenProfiles }}' "${{ inputs.extraMavenArgs }}" "-Dliquibase.version=master-SNAPSHOT" + else + mvn -B test -P '${{ inputs.mavenProfiles }}' "-Dliquibase.version=master-SNAPSHOT" + fi - name: Notify Slack on Build Failure if: ${{ failure() && inputs.nightly }}