Skip to content

PR Labeler (on GitHub-hosted) #199

PR Labeler (on GitHub-hosted)

PR Labeler (on GitHub-hosted) #199

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:
if: ${{ !contains(github.actor, '[bot]') }}
runs-on: ${{ (vars.RUNS_ON_SELF_HOSTED == null && 'ubuntu-24.04') || 'self-hosted' }}
permissions:
contents: read
pull-requests: write
timeout-minutes: 30
steps:
- id: app-token
uses: actions/create-github-app-token@136412a57a7081aa63c935a2cc2918f76c34f514 # v1.11.2
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 }}