Skip to content

Commit

Permalink
CI/GitHub: Apply branch label to PRs when they are opened
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
jackpoz committed Dec 26, 2020
1 parent e530105 commit 89cfced
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 89cfced

Please sign in to comment.