mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
5
.github/workflows/pr-labeler.yml
vendored
5
.github/workflows/pr-labeler.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user