From ce39e747fcc229fdbd8cdf3857ad1d0ee053be92 Mon Sep 17 00:00:00 2001 From: Toshiaki Maki Date: Sat, 29 Jun 2024 22:46:33 +0900 Subject: [PATCH] Fix JDK Version --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 79aad39c..a52ed8e2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: contents: read steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} @@ -78,11 +78,11 @@ jobs: if [ "${CURRENT_VERSION}" = "$(echo ${CURRENT_VERSION} | grep "\-SNAPSHOT")" ];then ./mvnw -V deploy -s settings.xml --no-transfer-progress -DskipTests=true -DserverId=sonatype-snapshots fi - - name: Set up JDK 17 with GPG + - name: Set up JDK with GPG if: github.ref == 'refs/heads/main' uses: actions/setup-java@v4 with: - java-version: '17' + java-version: ${{ matrix.java }} distribution: 'liberica' cache: maven gpg-private-key: ${{ steps.secrets.outputs.GPG_SECRING }}