Skip to content

Commit f4b161a

Browse files
committed
Also fix license header check checkout
1 parent 0dd3e0e commit f4b161a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/license-header-check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v5
12+
with:
13+
ref: ${{github.event.pull_request.head.sha}}
14+
1215
- name: Set up Go
1316
uses: actions/setup-go@v6
1417
with:
1518
go-version-file: "${{ github.workspace }}/go.mod"
19+
1620
- name: Install addlicense
1721
run: go install github.com/google/addlicense@latest
22+
1823
- name: Check license headers
1924
run: |
2025
$(go env GOPATH)/bin/addlicense \

0 commit comments

Comments
 (0)