Committed
This commit is contained in:
15
git_automation.sh
Executable file
15
git_automation.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user