From 1bfad820a9d759c92bfe361e2ccb5fc1bb6ea81e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 13 Jun 2024 11:22:58 +0800 Subject: [PATCH] ci: update GitHub Actions workflow for improved CI/CD - Set `fetch-depth` to 0 in the GitHub Actions workflow - Add `check-latest: true` to the Go version configuration - Update `goreleaser-action` from v5 to v6 Signed-off-by: Bo-Yi Wu --- .github/workflows/goreleaser.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index c776b74..b00b7a0 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -14,14 +14,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup go uses: actions/setup-go@v5 with: - go-version-file: "go.mod" - + go-version-file: go.mod + check-latest: true - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser