summaryrefslogtreecommitdiff
path: root/.github/workflows/issue_labeler.yml
blob: f40811299b6184697aac7867b279caea91fb6268 (plain)
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
30
name: Issue Labeler

on:
  issues:
    types: [opened, edited, reopened]

concurrency:
  group: issue-labeler-${{ github.repository_id }}-${{ github.event.issue.number }}
  cancel-in-progress: true

permissions: {}

jobs:
  label:
    if: ${{ github.event.issue.pull_request == null }}
    runs-on: ubuntu-22.04
    timeout-minutes: 5
    permissions:
      contents: read
      issues: write
    steps:
      - name: Checkout trusted workflow code
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          persist-credentials: false

      - name: Add issue labels
        env:
          GITHUB_TOKEN: ${{ github.token }}
        run: python3 tools/ci/issue_labeler.py