diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 94673dce13..67c1194164 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,8 +42,9 @@ jobs: if: ${{ github.event_name == 'pull_request' }} - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 11 # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/cross-version.yml b/.github/workflows/cross-version.yml index 1acda8b8c7..b8fd801051 100644 --- a/.github/workflows/cross-version.yml +++ b/.github/workflows/cross-version.yml @@ -14,8 +14,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: ${{ matrix.java }} - name: Cache Maven Repository uses: actions/cache@v2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2080d53633..019f572b1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 11 - name: Cache Maven Repository uses: actions/cache@v2 @@ -35,8 +36,9 @@ jobs: with: fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: 11 - name: Cache Maven Repository uses: actions/cache@v2