mirror of
https://github.com/plcnk/charts.git
synced 2026-04-05 17:22:21 +00:00
28 lines
644 B
YAML
28 lines
644 B
YAML
---
|
|
name: Label PR
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
labeler:
|
|
name: Labeler
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
|
steps:
|
|
- name: Generate Token
|
|
uses: actions/create-github-app-token@v1
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ secrets.BOT_APP_ID }}
|
|
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
|
|
|
|
- name: Labeler
|
|
uses: actions/labeler@v5
|
|
with:
|
|
repo-token: "${{ steps.app-token.outputs.token }}"
|
|
configuration-path: .github/labeler.yaml
|