From 370b21e5ec51fe9f9978a1937362b20b50167ebe Mon Sep 17 00:00:00 2001 From: Artak <34246760+mkArtakMSFT@users.noreply.github.com> Date: Fri, 18 Oct 2019 21:30:28 -0700 Subject: [PATCH] Avoid labeling external PRs (#15171) Doing this to avoid a long-standing bug in GitHub labeler action, which results in failure for the labeler for PRs from forks: https://github.com/actions/labeler/issues/12 --- .github/workflows/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index dcafb97dc98..4652757b25c 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -7,5 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/labeler@v2 + if: github.repository == 'aspnet/AspNetCore' with: repo-token: "${{ secrets.GITHUB_TOKEN }}" -- GitLab