Skip to content

Commit 31b4871

Browse files
committed
fix: update sha to ref
1 parent 1f6c524 commit 31b4871

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/commit-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v5
1616
with:
17-
ref: ${{ github.event.pull_request.head.sha }} # Checkout PR HEAD commit
17+
ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch
1818
fetch-depth: 0 # Required for merge-base checks
1919
- uses: ./ # self test
2020
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@v5
5252
with:
53-
ref: ${{ github.event.pull_request.head.sha }} # Checkout PR HEAD commit
53+
ref: ${{ github.event.pull_request.head.ref }} # Checkout PR branch
5454
fetch-depth: 0 # Required for merge-base checks
5555
- uses: commit-check/commit-check-action@v2
5656
env:

0 commit comments

Comments
 (0)