diff --git a/deploy/run-vps-data-production.sh b/deploy/run-vps-data-production.sh index a6e1961..65d3b97 100755 --- a/deploy/run-vps-data-production.sh +++ b/deploy/run-vps-data-production.sh @@ -128,15 +128,19 @@ fi if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then echo "[4/5] Committing and pushing automated VPS telemetry updates to git.libre.audio..." - run_checked "hs-readme-sync --all" python3 -m hyperstitionstud_io.publishing.readme_sync --all + run_checked "hs-readme-sync --all" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --all export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new" STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)" for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then + if ! git -C "${REPOS_ROOT}/${r}" config user.name 2>&1; then + git -C "${REPOS_ROOT}/${r}" config user.name "Hyperstition VPS Bot" + git -C "${REPOS_ROOT}/${r}" config user.email "vps-bot@hyperstitionstud.io" + fi git -C "${REPOS_ROOT}/${r}" add -A if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then - run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" - run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main + run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" || true + run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main || true fi fi done