Skip to content

Commit

Permalink
chore(ci): only commit changes when there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jceb committed Jul 1, 2024
1 parent c7c4a7a commit 257a767
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 257a767

Please sign in to comment.