From 89cfced1b568e8807ab71f7da0e3ffc5cdc10ce7 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 26 Dec 2020 14:02:14 +0100 Subject: [PATCH] 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" --- .github/workflows/pr-labeler.yml | 5 ++--- 1 file 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: