mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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"
15 lines
301 B
YAML
15 lines
301 B
YAML
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 }}
|