-
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (36 loc) · 1.37 KB
/
labels.yaml
File metadata and controls
39 lines (36 loc) · 1.37 KB
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
33
34
35
36
37
38
39
---
name: Labels
"on":
workflow_call:
inputs:
extra-label-files:
required: false
type: string
# Restrict all project-related activities to the main branch.
push:
branches:
- main
concurrency:
# Group workflow jobs so new commits cancels in-progress execution triggered by previous commits. Source:
# https://mail.python.org/archives/list/pypa-committers@python.org/thread/PCBCQMJF64JGRBOX7E2EE4YLKHT4DI55/
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
labels:
name: Sync labels
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5.0.1
- name: Sync labels
uses: julb/action-manage-label@1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip_delete: true
from: |
https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels.yaml
${{ inputs.extra-label-files }}
${{ ( startsWith(github.event.repository.name, 'awesome-')
&& github.event.repository.name != 'awesome-template' &&
'https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels-awesome.yaml' ) || '' }}