Skip to content

Commit eccb0f5

Browse files
committed
Fix ref
1 parent 7845e89 commit eccb0f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
github.rest.repos.createCommitStatus({
8181
owner: context.repo.owner,
8282
repo: context.repo.repo,
83-
sha: context.sha,
83+
sha: ${{ github.event.pull_request.head.sha }},
8484
state: 'success',
8585
context: 'pre-commit-result',
8686
description: 'All pre-commit checks passed',
@@ -92,12 +92,11 @@ jobs:
9292
needs.lint.result == 'failure'
9393
uses: actions/github-script@v7
9494
with:
95-
debug: true
9695
script: |
9796
github.rest.repos.createCommitStatus({
9897
owner: context.repo.owner,
9998
repo: context.repo.repo,
100-
sha: context.sha,
99+
sha: ${{ github.event.pull_request.head.sha }},
101100
state: 'pending',
102101
context: 'pre-commit-result',
103102
description: 'Pre-commit checks need to pass before merging',

0 commit comments

Comments
 (0)