mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 00:58:02 +00:00
Use status instead of precondition to avoid error 1
This commit is contained in:
@@ -46,12 +46,12 @@ tasks:
|
|||||||
notes:push:
|
notes:push:
|
||||||
desc: Commit and push changes to notes submodule
|
desc: Commit and push changes to notes submodule
|
||||||
dir: '{{.NOTES_DIR}}'
|
dir: '{{.NOTES_DIR}}'
|
||||||
preconditions:
|
|
||||||
- sh: git add NOTES.md && ! git diff --cached --quiet
|
|
||||||
msg: "No changes to commit"
|
|
||||||
cmds:
|
cmds:
|
||||||
|
- git add NOTES.md
|
||||||
- git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')"
|
- git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')"
|
||||||
- git push
|
- git push
|
||||||
|
status:
|
||||||
|
- git add NOTES.md && git diff --cached --quiet
|
||||||
silent: false
|
silent: false
|
||||||
|
|
||||||
notes:status:
|
notes:status:
|
||||||
|
|||||||
Reference in New Issue
Block a user