From 23916329bd15ada6df2d06174ebd8633f9015ec1 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Thu, 12 Mar 2020 08:49:05 -0700 Subject: [PATCH] Run the subscribe-to-label action on a schedule rather than on pull requests (#1296) Ideally, this would be on "labeled" types of pull request events, but that doesn't work if the pull request is from another fork. For example, see https://github.com/actions/labeler/issues/12 --- .github/workflows/subscribe-to-label.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/subscribe-to-label.yml b/.github/workflows/subscribe-to-label.yml index 739b45fdcc..59617317df 100644 --- a/.github/workflows/subscribe-to-label.yml +++ b/.github/workflows/subscribe-to-label.yml @@ -1,9 +1,14 @@ name: "Subscribe to Label" on: - pull_request: - types: ["labeled"] issues: types: ["labeled"] +on: + schedule: + # Run pull request triage every 5 minutes. Ideally, this would be on + # "labeled" types of pull request events, but that doesn't work if the pull + # request is from another fork. For example, see + # https://github.com/actions/labeler/issues/12 + - cron: '*/5 * * * *' jobs: triage: runs-on: ubuntu-latest