Skip to content

Commit 63ebafa

Browse files
committed
feat: add check for when the template is already in sync with the demo
1 parent bf45c15 commit 63ebafa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/update-demo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def update_demo(
6161
_checkout_demo_develop_or_existing_branch(demo_path=demo_path, branch=desired_branch_name)
6262
last_update_commit: str = get_last_cruft_update_commit(demo_path=demo_path)
6363

64+
if template_commit == last_update_commit:
65+
typer.secho(
66+
f"{demo_name} is already up to date with {desired_branch_name} at {last_update_commit}",
67+
fg=typer.colors.YELLOW
68+
)
69+
6470
if not is_ancestor(last_update_commit, template_commit):
6571
raise ValueError(
6672
f"The last update commit '{last_update_commit}' is not an ancestor of the current commit "

0 commit comments

Comments
 (0)