-
Notifications
You must be signed in to change notification settings - Fork 88
45 lines (41 loc) · 1.13 KB
/
Copy pathupdate-labels.yml
File metadata and controls
45 lines (41 loc) · 1.13 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
40
41
42
43
44
45
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_python' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
---
name: "Python Update Labels"
on:
push:
branches:
- "main"
paths:
- "template_config.yml"
env:
UV_SYSTEM_PYTHON: "1"
jobs:
update_backport_labels:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/setup-python@v6"
with:
python-version: "3.11"
- name: "Install uv"
uses: "astral-sh/setup-uv@v7"
with:
enable-cache: true
- name: "Configure Git with pulpbot name and email"
run: |
git config --global user.name 'pulpbot'
git config --global user.email 'pulp-infra@redhat.com'
- name: "Install python dependencies"
run: |
uv pip install requests pyyaml
- uses: "actions/checkout@v6"
- name: "Update labels"
run: |
python3 .github/workflows/scripts/update_backport_labels.py
env:
GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
...