From 667584d84a1e348834c963fb4d49d576ddca94a7 Mon Sep 17 00:00:00 2001 From: auvred Date: Wed, 16 Aug 2023 00:04:41 +0000 Subject: [PATCH] chore: properly checkout repo in prettier-update workflow --- .github/workflows/prettier-update.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/prettier-update.yml b/.github/workflows/prettier-update.yml index c90c72151aef..816e5d607fc5 100644 --- a/.github/workflows/prettier-update.yml +++ b/.github/workflows/prettier-update.yml @@ -21,6 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + persist-credentials: false - name: Check if prettier was changed as part of the latest commit on the PR id: prettier-package-check