mirror of
https://gitlab.com/sdbs_cz/digital-garden-anabasis.git
synced 2025-01-23 00:07:05 +01:00
add autoupdate script
This commit is contained in:
parent
a0117f5cfb
commit
d1e6432f37
1 changed files with 10 additions and 0 deletions
10
autoupdate.sh
Executable file
10
autoupdate.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
while :;do
|
||||
CHANGED="$(git diff --name-only|sed -e 's/^pages\///'|perl -E 'say join ", ", map {chomp; $_} <>')"
|
||||
git pull && \
|
||||
git lfs track pages/*.png && \
|
||||
git add . && \
|
||||
git commit -am "Automatic update, changed: ${CHANGED}" && \
|
||||
git push
|
||||
|
||||
sleep 300
|
||||
done
|
Loading…
Reference in a new issue