Skip to content

Commit 7c47a55

Browse files
committed
fix(workflow): pr not work properly
1 parent 94efc8a commit 7c47a55

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pull.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
go-version: '1.20'
3030

3131
- name: Check out code into the Go module directory
32-
uses: actions/checkout@master
32+
uses: actions/checkout@v4
33+
with:
34+
ref: ${{ github.event.pull_request.head.sha }}
3335

3436
- name: golangci-lint
3537
uses: golangci/golangci-lint-action@master

0 commit comments

Comments
 (0)