-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 934 Bytes
/
pr-label.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
---
name: "PR: Labeler"
on:
- pull_request_target
permissions:
contents: read
pull-requests: write
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@af35edadc00be37caa72ed9f3e6d5f7801bfdf09 # v1
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
id: app-token
with:
app-id: "${{ secrets.BOTTY_HILL_APP_ID }}"
private-key: "${{ secrets.BOTTY_HILL_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
with:
configuration-path: ".github/labeler.yaml"
sync-labels: true
repo-token: ${{ steps.app-token.outputs.token }}