Skip to content

Commit 26af4d3

Browse files
authored
Update pre-commit.yml
1 parent 14e30a3 commit 26af4d3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- uses: actions/checkout@v4
4646
if: ${{ github.event.issue.pull_request }}
4747
with:
48-
repository: ${{ steps.get-pr.outputs.head_repo }}
49-
ref: ${{ steps.get-pr.outputs.head_sha }} # sha
48+
repository: ${{ github.event.pull_request.head.repo.full_name }}
49+
ref: ${{ github.event.pull_request.head.ref }}
5050

5151
- uses: actions/checkout@v4
5252
if: ${{ !github.event.issue.pull_request }}
@@ -74,7 +74,6 @@ jobs:
7474
with:
7575
author_name: Style Fairy
7676
author_email: [email protected]
77-
message: 'Committing style changes'
78-
branch: ${{ steps.get-pr.outputs.head_ref }} # branch name
77+
message: 'pre-commit changes'
7978
env:
8079
GITHUB_TOKEN: ${{ secrets.FAIRY_TOKEN }}

0 commit comments

Comments
 (0)