Skip to content

Commit cbbce26

Browse files
committed
chore: add fetch depth to both template and demo
1 parent 039f66d commit cbbce26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/update-demo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Checkout Template
2020
uses: actions/checkout@v4
2121
with:
22+
fetch-depth: 0
2223
repository: ${{ github.repository }}
2324
path: "${{ github.workspace }}/cookiecutter-robust-python"
2425

scripts/update-demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def update_demo(
7777

7878
typer.secho(f"Updating demo project at {demo_path=}.", fg="yellow")
7979
with work_in(demo_path):
80-
typer.secho(f"template:\n\tcurrent_branch: {get_current_branch()}\n\tcurrent_commit: {get_current_commit()}")
80+
typer.secho(f"demo:\n\tcurrent_branch: {get_current_branch()}\n\tcurrent_commit: {get_current_commit()}")
8181
if get_current_branch() != desired_branch_name:
8282
git("checkout", "-b", desired_branch_name, DEMO.develop_branch)
8383

0 commit comments

Comments
 (0)