diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25f7e01..a584a3a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.github/workflows/trigger-template-update.yml b/.github/workflows/trigger-template-update.yml index 231272c..ca87790 100644 --- a/.github/workflows/trigger-template-update.yml +++ b/.github/workflows/trigger-template-update.yml @@ -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