From 110466d17211ace777aad0f4efb80875b4722e88 Mon Sep 17 00:00:00 2001 From: James Harris Date: Wed, 8 Jan 2020 21:20:09 +0000 Subject: [PATCH] fix: use periodic-labeler instead of labeler The starter labeler action tries to run on the forked repository instead of the origin repository - which errors due to lack of permissions (good). See https://github.com/actions/labeler/issues/12 Switched to periodic-labeler as it runs on origin as intended. --- .github/workflows/label.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index e90b599..9db3cad 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -1,19 +1,13 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler/blob/master/README.md - -name: Labeler -on: [pull_request] - +name: Pull Request Labeler +on: + schedule: + - cron: '0 0 * * *' jobs: - label: - + labeler: runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: paulfantom/periodic-labeler@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + LABEL_MAPPINGS_FILE: .github/labeler.yml