Skip to content

Commit 9448485

Browse files
committed
Update prettier action
1 parent 7c202e0 commit 9448485

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/run-prettier.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Prettier code formatting
22

33
# This action works with pull requests and pushes
44
on:
5-
pull_request:
5+
pull_request_target:
66
push:
77
branches:
88
- main
@@ -17,12 +17,13 @@ jobs:
1717
with:
1818
# Make sure the actual branch is checked out when running on pull requests
1919
ref: ${{ github.head_ref }}
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
2021
# This is important to fetch the changes to the previous commit
2122
fetch-depth: 0
2223

2324
- name: Prettify code
2425
uses: creyD/[email protected]
2526
with:
2627
# This part is also where you can pass other options, for example:
27-
prettier_options: --ignore-unknown --write **/*
28+
prettier_options: --ignore-unknown --write .
2829
only_changed: true

0 commit comments

Comments
 (0)