Skip to content

Commit 761f609

Browse files
committed
Update cookiecutter
1 parent 73a9c95 commit 761f609

File tree

12 files changed

+62
-40
lines changed

12 files changed

+62
-40
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
${{ runner.os }}-pip-
1818
1919
- name: "Set up Python"
20-
uses: "actions/setup-python@v5"
20+
uses: "actions/setup-python@v6"
2121
with:
2222
python-version: "3.11"
2323
- name: "Install python dependencies"

.github/workflows/collect_changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
ref: "main"
1414
fetch-depth: 0
15-
- uses: "actions/setup-python@v5"
15+
- uses: "actions/setup-python@v6"
1616
with:
1717
python-version: "3.11"
1818
- name: "Setup git"

.github/workflows/cookiecutter.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
token: "${{ secrets.RELEASE_TOKEN }}"
2323
path: "pulp-cli-ostree"
2424
- name: "Set up Python"
25-
uses: "actions/setup-python@v5"
25+
uses: "actions/setup-python@v6"
2626
with:
27-
python-version: "3.11"
27+
python-version: "3.13"
2828
- name: "Setup git"
2929
run: |
3030
git config user.name pulpbot
@@ -57,4 +57,51 @@ jobs:
5757
env:
5858
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
5959
continue-on-error: true
60+
update-dependencies:
61+
runs-on: "ubuntu-latest"
62+
steps:
63+
- uses: "actions/checkout@v5"
64+
with:
65+
repository: "pulp/pulp-cli"
66+
path: "pulp-cli"
67+
- uses: "actions/checkout@v5"
68+
with:
69+
token: "${{ secrets.RELEASE_TOKEN }}"
70+
path: "pulp-cli-ostree"
71+
- name: "Set up Python"
72+
uses: "actions/setup-python@v6"
73+
with:
74+
python-version: "3.13"
75+
- name: "Setup git"
76+
run: |
77+
git config user.name pulpbot
78+
git config user.email pulp-infra@redhat.com
79+
- name: "Install python dependencies"
80+
run: |
81+
pip install packaging tomlkit
82+
- name: "Apply cookiecutter templates"
83+
run: |
84+
../pulp-cli/cookiecutter/update_pulp_cli.py
85+
if [ "$(git status --porcelain)" ]
86+
then
87+
git add .
88+
git commit -m "Update CLI and GLUE"
89+
fi
90+
- name: "Create Pull Request"
91+
uses: "peter-evans/create-pull-request@v7"
92+
id: "create_pr"
93+
with:
94+
token: "${{ secrets.RELEASE_TOKEN }}"
95+
title: "Update CLI and GLUE"
96+
body: ""
97+
branch: "update_cli"
98+
delete-branch: true
99+
path: "pulp-cli-ostree"
100+
- name: "Mark PR automerge"
101+
run: |
102+
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
103+
if: "steps.create_pr.outputs.pull-request-number"
104+
env:
105+
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
106+
continue-on-error: true
60107
...

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
name: "pulp_cli_packages"
2929
- name: "Set up Python"
30-
uses: "actions/setup-python@v5"
30+
uses: "actions/setup-python@v6"
3131
with:
3232
python-version: "${{ matrix.python }}"
3333
- name: "Install python dependencies"

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232
- name: "Set up Python"
33-
uses: "actions/setup-python@v5"
33+
uses: "actions/setup-python@v6"
3434
with:
3535
python-version: "3.11"
3636
- name: "Install python dependencies"

.github/workflows/pr_checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
- uses: "actions/checkout@v5"
2323
with:
2424
fetch-depth: 0
25-
- uses: "actions/setup-python@v5"
25+
- uses: "actions/setup-python@v6"
2626
with:
2727
python-version: "3.12"
2828
- name: "Determine PR labels"
2929
run: |
3030
pip install GitPython==3.1.42
3131
git fetch origin ${{ github.event.pull_request.head.sha }}
3232
python .ci/scripts/pr_labels.py "origin/${{ github.base_ref }}" "${{ github.event.pull_request.head.sha }}" >> "$GITHUB_ENV"
33-
- uses: "actions/github-script@v7"
33+
- uses: "actions/github-script@v8"
3434
name: "Apply PR Labels"
3535
with:
3636
script: |

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
name: "pulp_cli_packages"
2222
- name: "Set up Python"
23-
uses: "actions/setup-python@v5"
23+
uses: "actions/setup-python@v6"
2424
with:
2525
python-version: "3.x"
2626
- name: "Install dependencies"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
token: "${{ secrets.RELEASE_TOKEN }}"
1515
- name: "Set up Python"
16-
uses: "actions/setup-python@v5"
16+
uses: "actions/setup-python@v6"
1717
with:
1818
python-version: "3.x"
1919
- name: "Install dependencies"

.github/workflows/release_branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
token: "${{ secrets.RELEASE_TOKEN }}"
1313
- name: "Set up Python"
14-
uses: "actions/setup-python@v5"
14+
uses: "actions/setup-python@v6"
1515
with:
1616
python-version: "3.11"
1717
- name: "Setup git"
@@ -41,7 +41,7 @@ jobs:
4141
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
4242
continue-on-error: true
4343
- name: "Add Backport Label for new Branch"
44-
uses: "actions/github-script@v7"
44+
uses: "actions/github-script@v8"
4545
with:
4646
script: |
4747
const { NEW_BRANCH } = process.env;

0 commit comments

Comments
 (0)