Skip to content

Commit f852602

Browse files
committed
ci: refine GitHub Actions Workflows
- 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]>
1 parent ce058f3 commit f852602

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/go.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ jobs:
2121
lint:
2222
runs-on: ubuntu-latest
2323
steps:
24+
- name: Checkout Code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: ${{ github.ref }}
2428
- name: Setup go
2529
uses: actions/setup-go@v5
2630
with:
2731
go-version-file: "go.mod"
2832
check-latest: true
29-
- name: Checkout repository
30-
uses: actions/checkout@v4
3133
- name: Setup golangci-lint
3234
uses: golangci/golangci-lint-action@v4
3335
with:

0 commit comments

Comments
 (0)