Skip to content

Commit 07eb7cb

Browse files
Update template_update.yml
1 parent 578dd13 commit 07eb7cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ jobs:
8686
--overwrite-if-exists \
8787
--output-dir template-base
8888
89-
- name: Generate new template output
89+
- name: Generate base template output
9090
if: env.SHA_CHANGED == 'true'
9191
run: |
9292
rm -rf ~/.cookiecutters/*
93-
mkdir -p template-new
94-
cookiecutter template-source \
93+
mkdir -p template-base
94+
jq '.cookiecutter.templates = "main"' .cookiecutter.json \
95+
> tmp.json && mv tmp.json .cookiecutter.json # remove if not needed
96+
cookiecutter base-template \
9597
--replay-file .cookiecutter.json \
96-
--no-input \
97-
# --extra-context '{"templates": "main"}' # uncomment if still needed
9898
--overwrite-if-exists \
99-
--output-dir template-new
99+
--output-dir template-base
100100
101101
- name: Apply patch if changes & create PR
102102
if: env.SHA_CHANGED == 'true'

0 commit comments

Comments
 (0)