From e432f519445a1d27214faf5c28c489bb37c7e244 Mon Sep 17 00:00:00 2001 From: Irvin Lim Date: Mon, 10 Feb 2025 20:42:52 +0800 Subject: [PATCH] chore(ci): Update deprecated actions (#140) --- .github/workflows/ci.yaml | 12 ++++++------ .github/workflows/nightly.yaml | 4 ++-- .github/workflows/release.yaml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b8bff04..cc0f30f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,17 +13,17 @@ jobs: outputs: go-version: ${{ steps.read-go-version.outputs.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: read-go-version name: Determine Go version from go.mod - run: echo "::set-output name=version::$(grep "go 1." go.mod | cut -d " " -f 2)" + run: echo "version=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_OUTPUT golangci-lint: runs-on: ubuntu-latest needs: - get-go-version steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-go@v3 with: go-version: ${{ needs.get-go-version.outputs.go-version }} @@ -42,7 +42,7 @@ jobs: - get-go-version # NOTE(irvinlim): Need to operate in GOPATH in order for generate-groups.sh to succeed (see Makefile). steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: path: "go/src/github.com/${{ github.repository }}" - uses: actions/setup-go@v3 @@ -62,7 +62,7 @@ jobs: needs: - get-go-version steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-go@v3 with: go-version: ${{ needs.get-go-version.outputs.go-version }} @@ -77,7 +77,7 @@ jobs: needs: - get-go-version steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-go@v2 with: go-version: ${{ needs.get-go-version.outputs.go-version }} diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 17d4e8f..459d49e 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -22,7 +22,7 @@ jobs: # TODO(irvinlim): Use docker manifest to support multi-arch nightly images. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Determine Go version from go.mod @@ -32,7 +32,7 @@ jobs: go-version: ${{ env.GO_VERSION }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 594b436..36f8418 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Determine Go version from go.mod @@ -38,7 +38,7 @@ jobs: linux/amd64 linux/arm linux/arm64 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -55,7 +55,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}