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"
This commit is contained in:
jackpoz
2020-12-26 14:02:14 +01:00
parent e530105abe
commit 89cfced1b5

View File

@@ -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: