Files
bash_testing/git_automation.sh
2025-12-23 15:29:57 +00:00

16 lines
327 B
Bash
Executable File

#!/bin/bash
TRIGGER_FILE="/tmp/please_update"
echo "[INFO] Watching $TRIGGER_FILE..."
while true; do
if [[ -f "$TRIGGER_FILE" ]]; then
rm -f "$TRIGGER_FILE"
echo "[INFO] Triggered at $(date)"
git status
git add .
git commit -m "Committed"
git push
fi
sleep 0.5
done