From 5e6de233e17a672aa49b188289c5d072af942a2d Mon Sep 17 00:00:00 2001 From: David Harder Date: Sat, 13 Jan 2024 20:50:05 -0600 Subject: [PATCH] Update prettier.yml --- .github/workflows/prettier.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 5f3220d29..66dc12b61 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,7 +1,6 @@ name: 'Format with Prettier' on: pull_request: - branches: [master] jobs: prettier: @@ -9,9 +8,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 - name: Prettify code uses: creyD/prettier_action@v4.3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} prettier_options: --write **/*.{md,mdx} - only_changed: True \ No newline at end of file + only_changed: True