From 71406045b762058eae70e5208e8f5363febbad65 Mon Sep 17 00:00:00 2001 From: Nikolai Amelichev Date: Wed, 6 Mar 2024 20:10:32 +0100 Subject: [PATCH] Use latest major versions of `setup-java` and `github-script` GitHub Actions --- .github/workflows/build.yaml | 2 +- .github/workflows/publish.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 37317615..5b06bc81 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: 'temurin' diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d2aa9480..72edcfaf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: 'temurin' @@ -28,13 +28,13 @@ jobs: - name: Fail workflow if SDK version is snapshot if: endsWith(env.YOJ_VERSION, 'SNAPSHOT') - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: core.setFailed('SNAPSHOT version cannot be published') - name: Fail workflow if SDK version is not equal to tag name if: format('v{0}', env.YOJ_VERSION) != github.ref_name - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: core.setFailed('Release name must be equal to project version') @@ -66,7 +66,7 @@ jobs: submodules: true - name: Set up Maven Central Repository - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: 'temurin'