Skip to content

Commit e9abf68

Browse files
Update template_update.yml
1 parent 941964c commit e9abf68

1 file changed

Lines changed: 4 additions & 19 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ jobs:
165165
else
166166
echo "ℹ️ prune_cookiecutter_json.py or deprecated.json not found; skipping prune."
167167
fi
168-
168+
169+
jq -e '.cookiecutter.include_audit | (type=="boolean")' /tmp/template-source/.cookiecutter.json > /dev/null
170+
169171
echo "=== After copy/prune: /tmp/template-source/.cookiecutter.json ==="
170172
cat /tmp/template-source/.cookiecutter.json
171173
@@ -190,24 +192,7 @@ jobs:
190192
--replay-file /tmp/template-source/.cookiecutter.json \
191193
--overwrite-if-exists \
192194
--output-dir /tmp/rendered
193-
194-
DIR=$(ls /tmp/rendered | head -n 1 || true)
195-
if [ -z "$DIR" ]; then
196-
echo "::error ::No rendered output found"
197-
exit 1
198-
fi
199-
200-
echo "dir=$DIR" >> "$GITHUB_OUTPUT"
201-
202-
DIR=$(ls /tmp/rendered | head -n 1 || true)
203-
204-
if [ -z "$DIR" ]; then
205-
echo "::error ::No rendered output found"
206-
exit 1
207-
fi
208-
209-
echo "dir=$DIR" >> "$GITHUB_OUTPUT"
210-
195+
211196
- name: Create update branch
212197
shell: bash
213198
run: |

0 commit comments

Comments
 (0)