Skip to content

Commit

Permalink
chore: move sample copier answers to includes directory (#441)
Browse files Browse the repository at this point in the history
Co-authored-by: msclock <msclock@qq.com>
  • Loading branch information
huxuan and msclock committed Mar 27, 2024
1 parent 16a7010 commit b1a76e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -156,10 +156,10 @@ doc: changelog doc-gen doc-mypy doc-coverage
########################################################################################

consistency:
find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {}
copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . .
find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {}
copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . .
rm -rf .copier-answers.yml
copier copy -r HEAD --data-file .copier-answers-sample.yml -f . .
copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . .
rm -rf .copier-answers.yml

########################################################################################
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions template/Makefile.jinja
Expand Up @@ -159,10 +159,10 @@ doc: changelog doc-gen doc-mypy doc-coverage
########################################################################################

consistency:
find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {}
copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . .
find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {}
copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . .
rm -rf .copier-answers.yml
copier copy -r HEAD --data-file .copier-answers-sample.yml -f . .
copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . .
rm -rf .copier-answers.yml

[% endif -%]
Expand Down

0 comments on commit b1a76e9

Please sign in to comment.