Skip to content

Commit b155c4e

Browse files
committed
ci: handle no changes gracefully
1 parent 7939ab7 commit b155c4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ jobs:
5555
run: |
5656
git config --global user.name "$GITHUB_ACTOR"
5757
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
58-
git add docs/
59-
git commit -m "ci(docs): Automated site build"
60-
git push
58+
git add docs/ && git commit -m "ci(docs): Automated site build" || echo "No doc changes"
59+
git push || echo "No doc updates to push"

0 commit comments

Comments
 (0)