From 1cc612294eb957e1dc1826a2e2f458a2001d2d8b Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 27 Oct 2025 16:45:03 -0500 Subject: [PATCH] Run notes:push steps only if there are changes --- Taskfile.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 5e76659..5356d2c 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -46,9 +46,11 @@ tasks: notes:push: desc: Commit and push changes to notes submodule dir: '{{.NOTES_DIR}}' + preconditions: + - sh: git add NOTES.md && ! git diff --cached --quiet + msg: "No changes to commit" cmds: - - git add NOTES.md - - git diff --cached --quiet || git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')" + - git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')" - git push silent: false