From 257a7674b530433b2865e239b866685b4802f001 Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Mon, 1 Jul 2024 08:38:02 +0200 Subject: [PATCH] chore(ci): only commit changes when there are changes --- docs/Justfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/Justfile b/docs/Justfile index 53f2f57..4adae08 100644 --- a/docs/Justfile +++ b/docs/Justfile @@ -54,12 +54,14 @@ publish: build cp -r dist/* "_websites/{{ WEBSITE }}" cd "_websites/{{ WEBSITE }}" git add -A . - git commit -m "chore: update docs" - git push - cd - - git add "_websites/{{ WEBSITE }}" - git commit -n -m "Update docs repository" - git push + if (git status -s --porcelain | str trim) != "" { + git commit -m "chore: update docs" + git push + cd - + git add "_websites/{{ WEBSITE }}" + git commit -n -m "Update docs repository" + git push + } # Clean files clean: