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
This commit is contained in:
Nick Fitzgerald
2020-03-12 08:49:05 -07:00
committed by GitHub
parent 4a443e4f10
commit 23916329bd

View File

@@ -1,9 +1,14 @@
name: "Subscribe to Label" name: "Subscribe to Label"
on: on:
pull_request:
types: ["labeled"]
issues: issues:
types: ["labeled"] 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: jobs:
triage: triage:
runs-on: ubuntu-latest runs-on: ubuntu-latest