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:
9
.github/workflows/subscribe-to-label.yml
vendored
9
.github/workflows/subscribe-to-label.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user