16 lines
327 B
Bash
Executable File
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
|