Skip to content

Commit

Permalink
ci: update GitHub Actions workflows for Go projects
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
appleboy committed Mar 24, 2024
1 parent 84d0919 commit 88cbcd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup go
uses: actions/setup-go@v5
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
Expand All @@ -27,6 +28,6 @@ jobs:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 88cbcd0

Please sign in to comment.