ci: even more automatic
All checks were successful
Build and deploy / lint (push) Successful in 1m5s
All checks were successful
Build and deploy / lint (push) Successful in 1m5s
This commit is contained in:
parent
798275b94c
commit
1d770072c9
1 changed files with 3 additions and 0 deletions
3
Justfile
3
Justfile
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue