Files
home-assistant-config/scripts/git-push.sh
T
2026-05-24 08:20:04 +02:00

10 lines
287 B
Bash
Executable File

#!/bin/bash
# Daily push of /config to fkrebs/home-assistant-config.
# .gitignore handles secret allowlist. See /docs/infra/config-to-git.md.
set -e
cd /config
git add -A
git diff --cached --quiet && exit 0
git commit -q -m "auto: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
git push -q origin main