From cd3510900760be04f0473489ef80509989c22cf3 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 7 Apr 2022 12:25:49 +0200 Subject: [PATCH] Bump actions to v3 (#314) --- .github/workflows/build.yml | 4 +-- .github/workflows/check-dist.yml | 7 ++-- .github/workflows/e2e-cache.yml | 8 ++--- .github/workflows/e2e-local-file.yml | 6 ++-- .github/workflows/e2e-publishing.yml | 8 ++--- .github/workflows/e2e-versions.yml | 14 ++++---- .github/workflows/licensed.yml | 2 +- README.md | 24 ++++++------- docs/advanced-usage.md | 52 ++++++++++++++-------------- 9 files changed, 63 insertions(+), 62 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3809e0..9d665b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,9 +19,9 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node.JS 16 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16.x cache: npm diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 8e9b07b..6274fd2 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -21,12 +21,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set Node.js 16.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 16.x + cache: npm - name: Install dependencies run: npm ci @@ -44,7 +45,7 @@ jobs: id: diff # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: dist diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 347e40c..c23c177 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -23,7 +23,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run setup-java with the cache for gradle uses: ./ id: setup-java @@ -49,7 +49,7 @@ jobs: needs: gradle-save steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run setup-java with the cache for gradle uses: ./ id: setup-java @@ -72,7 +72,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run setup-java with the cache for maven uses: ./ id: setup-java @@ -96,7 +96,7 @@ jobs: needs: maven-save steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run setup-java with the cache for maven uses: ./ id: setup-java diff --git a/.github/workflows/e2e-local-file.yml b/.github/workflows/e2e-local-file.yml index 4f4cd03..1361bb0 100644 --- a/.github/workflows/e2e-local-file.yml +++ b/.github/workflows/e2e-local-file.yml @@ -20,7 +20,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download Adopt OpenJDK file run: | if ($IsLinux) { @@ -57,7 +57,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download Zulu OpenJDK file run: | if ($IsLinux) { @@ -94,7 +94,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download Eclipse Temurin file run: | if ($IsLinux) { diff --git a/.github/workflows/e2e-publishing.yml b/.github/workflows/e2e-publishing.yml index 1901b8d..cf179fc 100644 --- a/.github/workflows/e2e-publishing.yml +++ b/.github/workflows/e2e-publishing.yml @@ -24,7 +24,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -59,7 +59,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Create fake settings.xml run: | $xmlDirectory = Join-Path $HOME ".m2" @@ -95,7 +95,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Create fake settings.xml run: | $xmlDirectory = Join-Path $HOME ".m2" @@ -132,7 +132,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java diff --git a/.github/workflows/e2e-versions.yml b/.github/workflows/e2e-versions.yml index 9785530..f64706a 100644 --- a/.github/workflows/e2e-versions.yml +++ b/.github/workflows/e2e-versions.yml @@ -27,7 +27,7 @@ jobs: version: 8 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -53,7 +53,7 @@ jobs: - '16.0.2+7' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -75,7 +75,7 @@ jobs: distribution: ['temurin', 'zulu', 'liberica'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -98,7 +98,7 @@ jobs: version: ['17-ea', '15.0.0-ea.14'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -120,7 +120,7 @@ jobs: version: ['17-ea'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -165,7 +165,7 @@ jobs: java-package: 'jre' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java @@ -191,7 +191,7 @@ jobs: version: ['11'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: setup-java uses: ./ id: setup-java diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index 73504c0..fd70702 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest name: Check licenses steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: npm ci - name: Install licensed run: | diff --git a/README.md b/README.md index af8ea78..84a5e92 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ Inputs `java-version` and `distribution` are mandatory. See [Supported distribut **Eclipse Temurin** ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'temurin' # See 'Supported distributions' for available options java-version: '17' @@ -36,8 +36,8 @@ steps: **Zulu OpenJDK** ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '11' @@ -77,8 +77,8 @@ The cache input is optional, and caching is turned off by default. #### Caching gradle dependencies ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11' @@ -89,8 +89,8 @@ steps: #### Caching maven dependencies ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11' @@ -109,8 +109,8 @@ For Java distributions that are not cached on Hosted images, `check-latest` alwa ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: '11' @@ -128,9 +128,9 @@ jobs: java: [ '8', '11', '13', '15' ] name: Java ${{ matrix.Java }} sample steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: '' java-version: ${{ matrix.java }} diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index a0b7aff..40f8e9c 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -20,8 +20,8 @@ Inputs `java-version` and `distribution` are mandatory and needs to be provided. ### Eclipse Temurin ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '11' @@ -33,8 +33,8 @@ steps: ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'adopt-hotspot' java-version: '11' @@ -44,8 +44,8 @@ steps: ### Zulu ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: '11' @@ -56,8 +56,8 @@ steps: ### Liberica ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'liberica' java-version: '11' @@ -68,8 +68,8 @@ steps: ### Microsoft ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: 'microsoft' java-version: '11' @@ -79,8 +79,8 @@ steps: ## Installing custom Java package type ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: '' java-version: '11' @@ -93,8 +93,8 @@ steps: ```yaml steps: -- uses: actions/checkout@v2 -- uses: actions/setup-java@v2 +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 with: distribution: '' java-version: '11' @@ -110,7 +110,7 @@ steps: - run: | download_url="https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz" wget -O $RUNNER_TEMP/java_package.tar.gz $download_url -- uses: actions/setup-java@v2 +- uses: actions/setup-java@v3 with: distribution: 'jdkfile' jdkFile: ${{ runner.temp }}/java_package.tar.gz @@ -132,9 +132,9 @@ jobs: java: [ '8', '11' ] name: Java ${{ matrix.Java }} (${{ matrix.distribution }}) sample steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: ${{ matrix.distribution }} java-version: ${{ matrix.java }} @@ -152,9 +152,9 @@ jobs: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] name: Java ${{ matrix.Java }} (${{ matrix.os }}) sample steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: ${{ matrix.java }} @@ -169,9 +169,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: '' java-version: '11' @@ -185,7 +185,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password - name: Set up Apache Maven Central - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' java-version: '11' @@ -280,9 +280,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 for Shared Runner - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: '' java-version: '11' @@ -306,10 +306,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: '' java-version: '11'