Skip to content

Commit 88cbcd0

Browse files
committed
ci: update GitHub Actions workflows for Go projects
- Update the `fetch-depth` value to `0` in the workflow for `go.yml` - Update the `golangci/golangci-lint-action` version from `v3` to `v4` in the workflow for `go.yml` - Change the step name from `Checkout` to `Checkout repository` in the workflow for `goreleaser.yml` - Update the `actions/setup-go` version to `v5` in the workflow for `goreleaser.yml` - Modify the `args` value to `release --clean` in the workflow for `goreleaser.yml` Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 84d0919 commit 88cbcd0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
1720
- name: Setup go
1821
uses: actions/setup-go@v5
1922
with:

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout
15+
- name: Checkout repository
1616
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
- name: Set up Go
19+
20+
- name: Setup go
2021
uses: actions/setup-go@v5
2122
with:
2223
go-version-file: go.mod
@@ -27,6 +28,6 @@ jobs:
2728
# either 'goreleaser' (default) or 'goreleaser-pro'
2829
distribution: goreleaser
2930
version: latest
30-
args: release --rm-dist
31+
args: release --clean
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)