1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Update actions/setup-java to v2

This commit is contained in:
TacoTheDank 2021-04-14 11:13:05 -04:00
parent b025bdf0c7
commit c74162c586

View File

@ -21,10 +21,11 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
run: git checkout -B ${{ github.head_ref }} run: git checkout -B ${{ github.head_ref }}
- name: set up JDK 1.8 - name: set up JDK 8
uses: actions/setup-java@v1.4.3 uses: actions/setup-java@v2
with: with:
java-version: 1.8 java-version: 8
distribution: "zulu"
- name: Cache Gradle dependencies - name: Cache Gradle dependencies
uses: actions/cache@v2 uses: actions/cache@v2
@ -49,10 +50,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: set up JDK 1.8 - name: set up JDK 8
uses: actions/setup-java@v1.4.3 uses: actions/setup-java@v2
with: with:
java-version: 1.8 java-version: 8
distribution: "zulu"
- name: Cache Gradle dependencies - name: Cache Gradle dependencies
uses: actions/cache@v2 uses: actions/cache@v2
@ -74,9 +76,10 @@ jobs:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis # fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# - name: Set up JDK 11 # - name: Set up JDK 11
# uses: actions/setup-java@v1.4.3 # uses: actions/setup-java@v2
# with: # with:
# java-version: 11 # Sonar requires JDK 11 # java-version: 11 # Sonar requires JDK 11
# distribution: "zulu"
# - name: Cache SonarCloud packages # - name: Cache SonarCloud packages
# uses: actions/cache@v2 # uses: actions/cache@v2