This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-30004
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/HBASE-30004 by this push:
new 05788b17d52 skip when nothing to commit
05788b17d52 is described below
commit 05788b17d52f475817860597883144344538cfeb
Author: Duo Zhang <[email protected]>
AuthorDate: Wed Mar 18 22:06:01 2026 +0800
skip when nothing to commit
---
dev-support/generate-website/build-hbase-website.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dev-support/generate-website/build-hbase-website.sh
b/dev-support/generate-website/build-hbase-website.sh
index de9d5f45255..4e28ff757de 100755
--- a/dev-support/generate-website/build-hbase-website.sh
+++ b/dev-support/generate-website/build-hbase-website.sh
@@ -226,6 +226,10 @@ fi
echo "Adding all the files we know about"
git add .
+if [[ -z "$(git status --porcelain)" ]]; then
+ echo "No files to commit, skipping..."
+ exit 0
+fi
# Create the commit message and commit the changes
WEBSITE_COMMIT_MSG="Published site at $CURRENT_HBASE_COMMIT."
echo "WEBSITE_COMMIT_MSG: $WEBSITE_COMMIT_MSG"