-
Notifications
You must be signed in to change notification settings - Fork 46
62 lines (60 loc) · 1.7 KB
/
cookiecutter.yml
File metadata and controls
62 lines (60 loc) · 1.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: "Update CI from cookiecutter"
on:
workflow_dispatch:
schedule:
- cron: "30 0 * * 0"
defaults:
run:
working-directory: "pulp-cli"
jobs:
update-ci:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
with:
repository: "pulp/pulp-cli"
path: "pulp-cli"
- uses: "actions/checkout@v6"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp-cli"
- name: "Setup git"
run: |
git config user.name pulpbot
git config user.email pulp-infra@redhat.com
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
python-version: "3.14"
allow-prereleases: true
- name: "Install uv"
uses: "astral-sh/setup-uv@v7"
with:
enable-cache: true
- name: "Apply cookiecutter templates"
run: |
uv run ../pulp-cli/cookiecutter/apply_templates.py
if [ "$(git status --porcelain)" ]
then
git add .
git commit -m "Update cookiecutter"
fi
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Update cookiecutter"
body: ""
branch: "update_cookiecutter"
delete-branch: true
path: "pulp-cli"
- name: "Mark PR automerge"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
continue-on-error: true
...