Skip to content

Commit e3e4bd3

Browse files
authored
Merge pull request #73 from robust-python/release/2025.12.1
Release/2025.12.1
2 parents 363842d + 269eecd commit e3e4bd3

File tree

10 files changed

+206
-118
lines changed

10 files changed

+206
-118
lines changed

.github/workflows/merge-demo-feature.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- "robust-maturin-demo"
2222
with:
2323
demo_name: ${{ matrix.demo_name }}
24+
branch: ${{ github.ref_name }}
2425

2526
merge-demo-feature:
2627
name: Merge Demo Feature
@@ -30,18 +31,21 @@ jobs:
3031
demo_name:
3132
- "robust-python-demo"
3233
- "robust-maturin-demo"
34+
env:
35+
GH_TOKEN: ${{ secrets.DEMO_TOKEN }}
3336
steps:
3437
- name: Checkout Template
3538
uses: actions/checkout@v4
3639
with:
37-
repository: ${{ github.repository }}
40+
repository: "${{ github.repository_owner }}/cookiecutter-robust-python"
3841

3942
- name: Checkout Demo
4043
uses: actions/checkout@v4
4144
with:
4245
repository: "${{ github.repository_owner }}/${{ inputs.demo_name }}"
4346
path: ${{ inputs.demo_name }}
4447
ref: develop
48+
token: ${{ secrets.DEMO_TOKEN }}
4549

4650
- name: Set up uv
4751
uses: astral-sh/setup-uv@v6

.github/workflows/sync-demos.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: sync-demo.yml
22
on:
3-
pull_request:
4-
branches:
5-
- develop
3+
push:
4+
branches-ignore:
5+
- "main"
6+
- "develop"
7+
- "release/*"
68

79
jobs:
810
update-demo:
@@ -15,3 +17,6 @@ jobs:
1517
- "robust-maturin-demo"
1618
with:
1719
demo_name: ${{ matrix.demo_name }}
20+
branch: ${{ github.ref_name }}
21+
secrets:
22+
DEMO_TOKEN: ${{ secrets.DEMO_TOKEN }}

.github/workflows/update-demo.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ on:
55
demo_name:
66
required: true
77
type: string
8+
branch:
9+
required: true
10+
type: string
11+
secrets:
12+
DEMO_TOKEN:
13+
required: true
814

915
env:
1016
COOKIECUTTER_ROBUST_PYTHON__DEMOS_CACHE_FOLDER: ${{ github.workspace }}
1117
COOKIECUTTER_ROBUST_PYTHON__APP_AUTHOR: ${{ github.repository_owner }}
1218
ROBUST_PYTHON_DEMO__APP_AUTHOR: ${{ github.repository_owner }}
1319
ROBUST_MATURIN_DEMO__APP_AUTHOR: ${{ github.repository_owner }}
20+
GH_TOKEN: ${{ secrets.DEMO_TOKEN }}
1421

1522
jobs:
1623
update-demo:
@@ -19,15 +26,24 @@ jobs:
1926
- name: Checkout Template
2027
uses: actions/checkout@v4
2128
with:
29+
fetch-depth: 0
2230
repository: ${{ github.repository }}
2331
path: "${{ github.workspace }}/cookiecutter-robust-python"
2432

33+
- name: Configure Git
34+
working-directory: "${{ github.workspace }}/cookiecutter-robust-python"
35+
run: |
36+
git config --global user.name "github-actions[bot]"
37+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
38+
2539
- name: Checkout Demo
2640
uses: actions/checkout@v4
2741
with:
42+
fetch-depth: 0
2843
repository: "${{ github.repository_owner }}/${{ inputs.demo_name }}"
2944
path: ${{ inputs.demo_name }}
3045
ref: develop
46+
token: ${{ secrets.DEMO_TOKEN }}
3147

3248
- name: Set up uv
3349
uses: astral-sh/setup-uv@v6
@@ -39,4 +55,4 @@ jobs:
3955

4056
- name: Update Demo
4157
working-directory: "${{ github.workspace }}/cookiecutter-robust-python"
42-
run: "uvx nox -s 'update-demo(${{ inputs.demo_name }})' -- --branch-override ${{ github.head_ref }}"
58+
run: "uvx nox -s 'update-demo(${{ inputs.demo_name }})' -- --branch-override ${{ inputs.branch }}"

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## v2025.12.1 (2025-12-08)
2+
3+
### Feat
4+
5+
- improve the initial description and add a small blurb linking to the tooling rationale
6+
- add pin image for use in readme
7+
- add additional note pointing toward newly made PR url
8+
- remove extra url marker for stability temporarily
9+
- add debugging logs marking the location of demo PR's made
10+
- add GH_TOKEN adjacent to DEMO_TOKEN usages
11+
- add passthrough of DEMO_TOKEN wherever needed
12+
- add workflow_call secrets passthrough
13+
- replace default github token with premade PAT named DEMO_TOKEN
14+
15+
### Fix
16+
17+
- adjust inversed returncode chec
18+
- swap to just checking return code
19+
- shrink the scope of text checked for to ensure differing gh cli versions don't differ wording
20+
- remove decodes that aren't relevant
21+
- add utf-8 decodes where missing
22+
- add --global kwargs to git config calls to see if that fixes the error
23+
- add passthrough for branch name to differentiate branch name source for pull requests and straight pushes
24+
- adjust syntax to use branches-ignore in sync-demos workflow
25+
- add git config to update-demo workflow
26+
- try removing ancestry check to see if it actually matters
27+
- replace check against commit hash to instead check against HEAD in update-demo workflow
28+
- remove backup creation of develop branch due to more purposeful checkout existing
29+
- add two additional fetches that ensure branch actually exists locally so CICD doesn't error on update demo workflow
30+
- move fetch depth adjustment to the demo instead of the template checkout in the update-demo workflow
31+
- ensure enough history is fetched in update-demo workflow to verify branch is in sync with remote during CI
32+
- adjust repository reference in merge-demo-feature.yml
33+
134
## v2025.12.0 (2025-12-01)
235

336
### Feat

0 commit comments

Comments
 (0)