From eaf6a9f6efb5f1722fa7238ad8dc1267c247f116 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 11 Dec 2023 21:37:53 +0800 Subject: [PATCH] chore: update GitHub Actions versions in workflow files - Update the version of `actions/checkout` from v3 to v4 in `.github/workflows/codeql.yml` - Update the version of `actions/setup-go` from v3 to v5 in `.github/workflows/go.yml` - Update the version of `actions/checkout` from v3 to v4 in `.github/workflows/go.yml` - Update the version of `actions/setup-go` from v3 to v5 in `.github/workflows/go.yml` - Update the version of `actions/checkout` from v3 to v4 in `.github/workflows/goreleaser.yml` - Update the version of `actions/setup-go` from v2 to v5 in `.github/workflows/goreleaser.yml` - Update the version of `goreleaser/goreleaser-action` from v3 to v5 in `.github/workflows/goreleaser.yml` Signed-off-by: Bo-Yi Wu --- .github/workflows/codeql.yml | 2 +- .github/workflows/go.yml | 8 ++++---- .github/workflows/goreleaser.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2d9bcdd..7de6fd5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index feb9f7c..d7e429d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '^1.16' - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -39,12 +39,12 @@ jobs: GOPROXY: https://proxy.golang.org steps: - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.ref }} diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 64ed8b2..1f2c744 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -14,17 +14,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.17 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser