-
-
Notifications
You must be signed in to change notification settings - Fork 36
61 lines (53 loc) · 2.05 KB
/
labels.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Labels
"on":
push:
branches:
- main
# XXX Concurrency detection sucks and jobs gets killed randonmly.
# concurrency:
# # Group workflow jobs so new commits cancels in-progress execution triggered by previous commits.
# # Source: https://mail.python.org/archives/list/[email protected]/thread/PCBCQMJF64JGRBOX7E2EE4YLKHT4DI55/
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
# cancel-in-progress: true
jobs:
generate-labels:
name: Generate extra labels
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.13"
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.8.3/requirements/uv.txt
- name: Install project
run: |
uv --no-progress venv
uv --no-progress sync --all-extras
- name: Generate labels
run: >
uv --no-progress run --frozen --
python -c 'from meta_package_manager.labels import write_labels; write_labels()'
- uses: peter-evans/[email protected]
with:
assignees: ${{ github.actor }}
commit-message: "[github] Update extra labels."
title: "[github] Update extra labels"
body: >
<details><summary><code>Workflow metadata</code></summary>
> [Auto-generated on run `#${{ github.run_id }}`](${{ github.event.repository.html_url }}/actions/runs/${{
github.run_id }}) by `${{ github.job }}` job from [`labels.yaml`](${{ github.event.repository.html_url
}}/blob/${{ github.sha }}/.github/workflows/labels.yaml) workflow.
</details>
labels: "🤖 ci"
branch: update-labels
add-paths: |
.github/labels-extra.json
labels:
uses: kdeldycke/workflows/.github/workflows/[email protected]
needs: generate-labels
with:
extra-label-files: |
.github/labels-extra.json