From 3568970612c34a8bf75d1a9480693c64dc4ab1f2 Mon Sep 17 00:00:00 2001 From: Quinn Klassen Date: Mon, 8 Apr 2024 13:58:23 -0700 Subject: [PATCH] Update github actions (#2027) --- .github/workflows/ci.yml | 6 +++--- .github/workflows/coverage.yml | 4 ++-- .github/workflows/prepare-release.yml | 14 +++++++------- .github/workflows/publish-snapshot.yml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48a7934b8..71680b686 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "19" distribution: "temurin" @@ -46,7 +46,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" @@ -81,7 +81,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 534be39c8..985d0e41e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,13 +14,13 @@ jobs: fetch-depth: 0 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' - name: Set up Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - name: Run Tests run: ./gradlew test -x checkLicenseMain -x checkLicenses -x spotlessCheck -x spotlessApply -Pjacoco diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 1ef969143..cfb514fe3 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -86,13 +86,13 @@ jobs: run: git tag "$INPUT_TAG" - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" - name: Set up Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - name: Set up signing key run: mkdir -p "$HOME/.gnupg" && echo -n "$KEY" | base64 -d > "$HOME/.gnupg/secring.gpg" @@ -149,13 +149,13 @@ jobs: run: git tag "$INPUT_TAG" - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" - name: Set up Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - name: Build native test server run: ./gradlew :temporal-test-server:build @@ -163,7 +163,7 @@ jobs: # path ends in a wildcard because on windows the file ends in '.exe' # path excludes *.txt because native-image also writes a build manifest txt file - name: Upload executable to workflow - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.os_family }}_${{ matrix.arch }} path: | @@ -182,7 +182,7 @@ jobs: # when no artifact is specified, all artifacts are downloaded and expanded into CWD - name: Fetch executables - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 # example: linux_amd64/ -> temporal-test-server_1.2.3_linux_amd64 # the name of the directory created becomes the basename of the archive (*.tar.gz or *.zip) and @@ -199,7 +199,7 @@ jobs: run: for dir in *windows*; do zip -r "${dir}.zip" "$dir"; done - name: Upload release archives - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release-archives path: | diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 25c7cec69..858681cc6 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -33,13 +33,13 @@ jobs: fetch-depth: 0 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' - name: Set up Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 # Prefer env variables here rather than inline ${{ secrets.FOO }} to # decrease the likelihood that secrets end up printed to stdout.