From 2ee5e7d3f83cd338fc10073fc414c3f422709daf Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 4 Jul 2021 14:10:16 +0000 Subject: [PATCH] upgrade github java action git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891248 13f79535-47bb-0310-9956-ffa450edef68 --- .github/workflows/test-ant.yml | 4 +++- .github/workflows/test-maven.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-ant.yml b/.github/workflows/test-ant.yml index 5c0b8aef26..8a94e1c0ab 100644 --- a/.github/workflows/test-ant.yml +++ b/.github/workflows/test-ant.yml @@ -19,7 +19,7 @@ jobs: matrix: os: [ubuntu-latest] # for now verify JDK 8 and 11 - java: [ 8, 11.0.x ] + java: [ '8', '11' ] name: Java ${{ matrix.java }} build steps: @@ -28,7 +28,9 @@ jobs: - name: Setup java ${{ matrix.java }} uses: actions/setup-java@v2 with: + distribution: 'adopt' java-version: ${{ matrix.java }} + check-latest: true - name: Set up Ant id: setup-ant diff --git a/.github/workflows/test-maven.yml b/.github/workflows/test-maven.yml index 87c55871ca..75792f5205 100644 --- a/.github/workflows/test-maven.yml +++ b/.github/workflows/test-maven.yml @@ -20,7 +20,9 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v2 with: - java-version: 1.8 + distribution: 'adopt' + java-version: '8' + check-latest: true - name: Cache uses: actions/cache@v2.1.3 -- 2.39.5