mirror of
https://gitlab.com/sdbs_cz/digital-garden-anabasis.git
synced 2025-01-22 20:37:05 +01:00
10 lines
243 B
Bash
Executable file
10 lines
243 B
Bash
Executable file
#!/bin/bash
|
|
while :;do
|
|
CHANGED="$(git diff --name-only|sed -e 's/^pages\///'|perl -E 'say join ", ", map {chomp; $_} <>')"
|
|
git pull && \
|
|
git add . && \
|
|
git commit -am "Automatic update, changed: ${CHANGED}" && \
|
|
git push
|
|
|
|
sleep 300
|
|
done
|