From 9448485ee158582b3faad54e70b84dacce054278 Mon Sep 17 00:00:00 2001 From: Dan Ott Date: Tue, 10 Dec 2024 13:30:31 -0500 Subject: [PATCH] Update prettier action --- .github/workflows/run-prettier.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-prettier.yml b/.github/workflows/run-prettier.yml index ff033df1..257203e3 100644 --- a/.github/workflows/run-prettier.yml +++ b/.github/workflows/run-prettier.yml @@ -2,7 +2,7 @@ name: Prettier code formatting # This action works with pull requests and pushes on: - pull_request: + pull_request_target: push: branches: - main @@ -17,6 +17,7 @@ jobs: with: # Make sure the actual branch is checked out when running on pull requests ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} # This is important to fetch the changes to the previous commit fetch-depth: 0 @@ -24,5 +25,5 @@ jobs: uses: creyD/prettier_action@v4.3 with: # This part is also where you can pass other options, for example: - prettier_options: --ignore-unknown --write **/* + prettier_options: --ignore-unknown --write . only_changed: true