Skip to content

Commit 1cf69fa

Browse files
Update template_update.yml
1 parent e9abf68 commit 1cf69fa

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,24 @@ jobs:
176176
shell: bash
177177
run: |
178178
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+
exit 1
194+
fi
195+
196+
echo "✅ Replay file found and looks valid: $REPLAY_FILE"
179197
180198
rm -rf ~/.cookiecutters/* || true
181199
rm -rf /tmp/rendered || true

0 commit comments

Comments
 (0)