-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (27 loc) · 929 Bytes
/
auto-add-labels.yml
File metadata and controls
32 lines (27 loc) · 929 Bytes
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
31
32
---
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: Labeler
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # default, required to read repo content
pull-requests: write # needed so the action can apply labels to PRs
issues: write # needed so the action can apply labels to Issues
jobs:
label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
# Only run for PRs from the main repository (skip forks like Dependabot)
if: >
github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]'
steps:
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
with:
repo-token: ${{ secrets.SYS_EMF_GH_TOKEN }}