From ed6d577131835a6f49a5f476612b309af7b60f83 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Wed, 20 Nov 2019 07:50:48 -0800 Subject: [PATCH] fix(github): use periodic-labeler to fix https://github.com/actions/labeler/issues/12 --- .github/workflows/label.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index b1797dc4a..35bb88022 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -1,13 +1,14 @@ -name: Labeler -on: [pull_request] - +--- +name: Pull request labeler +on: + schedule: + - cron: '*/5 * * * *' jobs: - label: - + labeler: runs-on: ubuntu-latest - # 'if' added due to https://github.com/actions/labeler/issues/12 steps: - - uses: actions/labeler@v2 - if: github.repository == 'STRML/react-grid-layout' - 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