From 652de65bdcd7c327882270ffb40fdf1d0276a17a Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Thu, 9 Jan 2020 09:04:04 -0500 Subject: Update PR labeling to not depend on fork owner access. (#7699) This updates the PR labeling via GHA to not depend on the access level of the owner of the PR relative to the repository, which should finally make it work correctly. --- .github/workflows/labeler.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to '.github') diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 3a68bd23a5..130d438550 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -2,16 +2,14 @@ # Handles labelling of PR's. name: Pull Request Labeler on: - pull_request: - types: - - opened - - synchronized - - reopened - - ready_for_review + schedule: + - cron: '*/5 * * * *' jobs: labeler: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.NETDATABOT_TOKEN }}" + - uses: paulfantom/periodic-labeler@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + LABEL_MAPPINGS_FILE: .github/labeler.yml -- cgit v1.2.3