ci: even more automatic
All checks were successful
Build and deploy / lint (push) Successful in 1m5s

This commit is contained in:
Iain Learmonth 2025-06-20 15:16:54 +01:00
parent 798275b94c
commit 1d770072c9

View file

@ -10,7 +10,10 @@ update:
rsync -rv --delete $HOME/brain/brain/public/ content/ rsync -rv --delete $HOME/brain/brain/public/ content/
git add content/ git add content/
git diff --stat
if ! git diff --cached --quiet; then \ if ! git diff --cached --quiet; then \
export TIMESTAMP=$(date -u +"%Y-W%V-%u %H:%M:%S"); \ export TIMESTAMP=$(date -u +"%Y-W%V-%u %H:%M:%S"); \
git commit -m "checkpoint: ${TIMESTAMP}"; \ git commit -m "checkpoint: ${TIMESTAMP}"; \
git push origin main; \
fi fi