14 lines
289 B
Bash
Executable File
14 lines
289 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
REPO_DIR="/config"
|
|
cd "$REPO_DIR"
|
|
|
|
# Optional: ignore noisy/generated files here if needed
|
|
git add .
|
|
|
|
# Only commit if something actually changed
|
|
if ! git diff --cached --quiet; then
|
|
git commit -m "HA auto-commit: $(date '+%Y-%m-%d %H:%M:%S')"
|
|
git push origin main
|
|
fi |