We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9abf68 commit 1cf69faCopy full SHA for 1cf69fa
1 file changed
.github/workflows/template_update.yml
@@ -176,6 +176,24 @@ jobs:
176
shell: bash
177
run: |
178
set -euo pipefail
179
+
180
+ REPLAY_FILE="/tmp/template-source/.cookiecutter.json"
181
182
+ if [ ! -f "$REPLAY_FILE" ]; then
183
+ echo "::error ::Replay file not found: $REPLAY_FILE"
184
+ echo "Contents of /tmp/template-source:"
185
+ ls -la /tmp/template-source || true
186
+ exit 1
187
+ fi
188
189
+ if ! jq -e '.cookiecutter' "$REPLAY_FILE" >/dev/null 2>&1; then
190
+ echo "::error ::Replay file exists but is not valid JSON with a top-level .cookiecutter object: $REPLAY_FILE"
191
+ echo "First 200 lines:"
192
+ sed -n '1,200p' "$REPLAY_FILE" || true
193
194
195
196
+ echo "✅ Replay file found and looks valid: $REPLAY_FILE"
197
198
rm -rf ~/.cookiecutters/* || true
199
rm -rf /tmp/rendered || true
0 commit comments