diff options
author | jackpoz <giacomopoz@gmail.com> | 2020-12-26 14:02:14 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2020-12-26 14:04:20 +0100 |
commit | e8b78acbee35b63f4f19fdcfdf4915cf9d784b27 (patch) | |
tree | 7af73b6fa08f7602c523e68a0ba6556471168dc0 | |
parent | bb94aec9759f05f7d4c91b7e2c5288c302897b3a (diff) |
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 89cfced1b568e8807ab71f7da0e3ffc5cdc10ce7)
# Conflicts:
# .github/workflows/pr-labeler.yml
-rw-r--r-- | .github/workflows/pr-labeler.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000000..88cfc15b408 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -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 }} |