Skip to content

Commit

Permalink
ci: refine GitHub Actions Workflows
Browse files Browse the repository at this point in the history
- Update GitHub Actions workflow to checkout code with the correct reference
- Remove duplicate checkout step in GitHub Actions workflow

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Feb 18, 2024
1 parent ce058f3 commit f852602
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand Down

0 comments on commit f852602

Please sign in to comment.