From 4117eedd503b8b73b4bbb03c5b41d6135da2bab3 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Thu, 19 Oct 2023 15:26:06 +0900 Subject: [PATCH] use setup-java instead of deprecated olafurpg/setup-scala --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/release.yml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cfd405d..882fd75a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,10 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: olafurpg/setup-scala@v10 + - uses: actions/setup-java@v3 with: java-version: 8 + distribution: temurin - name: Mount caches uses: actions/cache@v2 with: @@ -51,9 +52,10 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: olafurpg/setup-scala@v10 + - uses: actions/setup-java@v3 with: java-version: 11 + distribution: temurin - name: Mount caches uses: actions/cache@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 671d1bfa..06461c20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,9 +18,10 @@ jobs: ~/.ivy2/cache ~/.cache/coursier key: ${{ runner.os }}-sbt-docs-${{ hashFiles('**/*.sbt') }} - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: java-version: 8 + distribution: adopt - name: Publish ${{ github.ref }} run: sbt ci-release env: