From 7417548d3516a42a6e7598c538cd79b9d8ad0e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wawrzyk?= Date: Mon, 29 Apr 2024 16:31:04 +0200 Subject: [PATCH] Update some github actions as they are already deprecated (#378) --- .github/workflows/dependencies-force.yml | 2 +- .github/workflows/dependencies.yml | 2 +- .github/workflows/release.yml | 6 +++--- .github/workflows/tests.yml | 19 +++++++++++-------- action.yaml | 1 + 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dependencies-force.yml b/.github/workflows/dependencies-force.yml index cf905976..c5c563d7 100644 --- a/.github/workflows/dependencies-force.yml +++ b/.github/workflows/dependencies-force.yml @@ -7,7 +7,7 @@ jobs: bazel-steward: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: VirtusLab/bazel-steward@latest diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 527b5c49..61e4f0aa 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -9,7 +9,7 @@ jobs: bazel-steward: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: VirtusLab/bazel-steward@latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b0538e8..2940ff64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: bazel build //app:app_deploy.jar name: Build project and jar - run: mv bazel-bin/app/app_deploy.jar bazel-steward.jar @@ -28,7 +28,7 @@ jobs: runs-on: "ubuntu-latest" if: github.ref_type == 'tag' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v5 with: @@ -47,7 +47,7 @@ jobs: if: github.ref_type == 'tag' needs: tagged-release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b77d07f..f638b623 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,10 +10,11 @@ jobs: unit-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'temurin' java-version: 11 - name: Cache Bazel uses: actions/cache@v3 @@ -30,10 +31,11 @@ jobs: integration-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'temurin' java-version: 11 - name: Cache Bazel uses: actions/cache@v3 @@ -48,10 +50,11 @@ jobs: klint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'temurin' java-version: 11 - name: Cache Bazel uses: actions/cache@v3 @@ -66,7 +69,7 @@ jobs: docker-build-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Integration tests @@ -77,6 +80,6 @@ jobs: buildifier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: agluszak/bazel-buildifier-action@v0.3 - run: git diff --exit-code diff --git a/action.yaml b/action.yaml index c782c64a..eb437a3a 100644 --- a/action.yaml +++ b/action.yaml @@ -27,6 +27,7 @@ runs: - name: Set up JDK 11 uses: actions/setup-java@v1 with: + distribution: 'temurin' java-version: 11 - name: Download release if: ${{ inputs.use-release == 'true' }}