From b427cd7f60847c130f1542e795678ab24279720a Mon Sep 17 00:00:00 2001 From: Amy <3855802+amylizzle@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:01:34 +0000 Subject: [PATCH] Fix PR labeler (#1667) --- .github/workflows/pr-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index feabf65340..e89597a5cc 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -17,7 +17,7 @@ jobs: repoToken: "${{ secrets.GITHUB_TOKEN }}" commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." - name: Apply Size Label - if: ${{ github.ref != 'refs/heads/master' }} + if: (github.event_name == 'pull_request_target' && github.head_ref != 'refs/heads/master') uses: pascalgn/size-label-action@v0.5.0 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"