#!/usr/bin/env bash # Regenerates the post's media from real commands. Run ../run.sh first (it builds work/). # Needs: tested-tools/venv (pyte, Pillow), ffmpeg, actionlint in ../../bin. set -euo pipefail cd "$(dirname "$0")/.." HERE="$PWD"; REPO="$(cd ../.. && pwd)"; OUT="$REPO/site/public/media/reusable-workflow-secrets" PY="${PY:-$HERE/../venv/bin/python}" mkdir -p "$OUT" "$HERE/work" spec() { # spec ... local name="$1" rows="$2"; shift 2 python3 - "$name" "$rows" "$@" > "$HERE/work/spec-$name.json" <