File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Prettier code formatting
22
33# This action works with pull requests and pushes
44on :
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
24252526 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
You can’t perform that action at this time.
0 commit comments