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"

(cherry picked from commit 89cfced1b5)

# Conflicts:
#	.github/workflows/pr-labeler.yml
This commit is contained in:
jackpoz
2020-12-26 14:02:14 +01:00
parent bb94aec975
commit e8b78acbee

14
.github/workflows/pr-labeler.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
on:
pull_request_target:
types: [opened]
jobs:
pr_labeler:
runs-on: ubuntu-latest
name: Pull Request Labeler
steps:
- name: Pull Request Labeler
id: pr-labeler
uses: TrinityCore/GitHub-Actions@pr-labeler-prod
with:
token: ${{ secrets.GITHUB_TOKEN }}