Skip to content

Commit 4e245be

Browse files
Update template_update.yml
1 parent fe779db commit 4e245be

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111

112112
- name: Install dependencies
113113
shell: bash
114-
run: pip install cookiecutter
114+
run: pip install "cookiecutter==2.6.0"
115115

116116
- name: Prepare branch name
117117
id: branch
@@ -174,13 +174,11 @@ jobs:
174174
rm -rf ~/.cookiecutters/* || true
175175
rm -rf /tmp/rendered || true
176176

177-
mkdir -p ~/.cookiecutter_replay
178-
cp /tmp/template-source/.cookiecutter.json ~/.cookiecutter_replay/template-source.json
179-
180177
cookiecutter /tmp/template-source \
181-
--replay
182-
--overwrite-if-exists \
183-
--output-dir /tmp/rendered
178+
--replay \
179+
--replay-file /tmp/template-source/.cookiecutter.json \
180+
--overwrite-if-exists \
181+
--output-dir /tmp/rendered
184182

185183
DIR=$(ls /tmp/rendered | head -n 1 || true)
186184

0 commit comments

Comments
 (0)