Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ jobs:
git -C /tmp/test-copier-lifecycle commit -m "chore: initialize generated project"
- name: Update to current template
run: |
uvx copier update --vcs-ref HEAD --defaults /tmp/test-copier-lifecycle
# Same flags as .github/workflows/trigger-template-update.yml, so the
# tested update path matches the one used to reach child repositories.
uvx copier update --vcs-ref HEAD -A --defaults --trust /tmp/test-copier-lifecycle
if git -C /tmp/test-copier-lifecycle diff --quiet; then
echo "Copier update produced no changes"
exit 1
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/trigger-template-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
- name: Update template in child repository
working-directory: child-repo
run: |
# Update from template
uvx copier update -A --trust
# Update from template. --defaults answers prompts added since the
# child repository was last updated; without it Copier would try to
# ask interactively and fail.
uvx copier update -A --defaults --trust

- name: Check for changes
id: changes
Expand Down