Skip to content

Commit

Permalink
Update prettier action
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltott committed Dec 10, 2024
1 parent 7c202e0 commit 9448485
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,12 +17,13 @@ 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

- name: Prettify code
uses: creyD/[email protected]
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

0 comments on commit 9448485

Please sign in to comment.