Skip to content

Commit 2072585

Browse files
committed
fix: add passthrough for branch name to differentiate branch name source for pull requests and straight pushes
1 parent 00ee317 commit 2072585

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
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

.github/workflows/sync-demos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ jobs:
1717
- "robust-maturin-demo"
1818
with:
1919
demo_name: ${{ matrix.demo_name }}
20+
branch: ${{ github.ref_name }}

.github/workflows/update-demo.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
demo_name:
66
required: true
77
type: string
8+
branch:
9+
required: true
10+
type: string
811

912
env:
1013
COOKIECUTTER_ROBUST_PYTHON__DEMOS_CACHE_FOLDER: ${{ github.workspace }}
@@ -47,4 +50,4 @@ jobs:
4750

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

0 commit comments

Comments
 (0)