aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-12-26 14:02:14 +0100
committerjackpoz <giacomopoz@gmail.com>2020-12-26 14:02:14 +0100
commit89cfced1b568e8807ab71f7da0e3ffc5cdc10ce7 (patch)
treec8aef4b69dc38819a1e9ccf305f9504a648e6508 /.github
parente530105abe3398e45d95f81ef85af6ffc7e6b47a (diff)
CI/GitHub: Apply branch label to PRs when they are opened
Apply branch label to PRs when they are opened instead of having a cron job that runs every 5 minutes. This uses the "new" github action type "pull_request_target"
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pr-labeler.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
index 7dcc85deaac..88cfc15b408 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-labeler.yml
@@ -1,10 +1,9 @@
on:
- schedule:
- - cron: '*/5 * * * *'
+ pull_request_target:
+ types: [opened]
jobs:
pr_labeler:
- if: github.repository == 'TrinityCore/TrinityCore'
runs-on: ubuntu-latest
name: Pull Request Labeler
steps: