diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e48cbcee07..ff7cba2f67a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - java-version: ["8", "11", "17"] + java-version: ['*', '11', '17'] steps: - uses: actions/checkout@v4 - name: Set up JDK ${{matrix.java-version}} PR @@ -52,7 +52,7 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml - name: Publish Snapshot - if: github.event_name != 'pull_request' && ${{matrix.java-version}} == "8" + if: github.event_name != 'pull_request' && ${{ matrix.java-version == '8' }} run: mvn -B clean deploy -DskipTests --file pom.xml env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}