diff --git a/.github/workflows/asf-snapshots-deploy.yml b/.github/workflows/asf-snapshots-deploy.yml index 1a92be1f48..be1695043f 100644 --- a/.github/workflows/asf-snapshots-deploy.yml +++ b/.github/workflows/asf-snapshots-deploy.yml @@ -34,7 +34,7 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: AdoptOpenJDK/install-jdk@v1 + uses: AdoptOpenJDK/install-jdk@v1.1.1 with: version: ${{ matrix.java }} - name: Cache Maven Repository @@ -46,6 +46,9 @@ jobs: deploy: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '17' ] needs: build if: github.ref == 'refs/heads/main' env: @@ -53,10 +56,10 @@ jobs: NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }} steps: - uses: actions/checkout@v4.1.4 - - name: Set up JDK 11 - uses: AdoptOpenJDK/install-jdk@v1 + - name: Set up JDK ${{ matrix.java }} + uses: AdoptOpenJDK/install-jdk@v1.1.1 with: - version: '11' + version: ${{ matrix.java }} - name: Deploy to ASF Snapshots Repository run: | ./mvnw ${MAVEN_ARGS} \