Skip to content

PR Labeler (on GitHub-hosted) #143

PR Labeler (on GitHub-hosted)

PR Labeler (on GitHub-hosted) #143

Workflow file for this run

name: PR Labeler
run-name: PR Labeler ${{ (vars.RUNS_ON_SELF_HOSTED == null && '(on GitHub-hosted)') || '(on self-hosted)' }}
on:
pull_request:
types: opened
defaults:
run:
shell: bash -euo pipefail {0}
jobs:
pr-labeler:
runs-on: ${{ (vars.RUNS_ON_SELF_HOSTED == null && 'ubuntu-latest') || 'self-hosted' }}
permissions:
contents: read
pull-requests: write
timeout-minutes: 30
steps:
- id: app-token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ secrets.APPS_APP_ID }}
private-key: ${{ secrets.APPS_PRIVATE_KEY }}
- uses: TimonVS/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af # v5.0.0
with:
repo-token: ${{ steps.app-token.outputs.token }}