This is an automated email from the ASF dual-hosted git repository.

francischuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica-go.git


The following commit(s) were added to refs/heads/main by this push:
     new b13bc78  Push website only if there are changes
b13bc78 is described below

commit b13bc783a759e987c1d7f029d04cb21a93df5b16
Author: Francis Chuang <[email protected]>
AuthorDate: Thu Apr 21 12:04:49 2022 +1000

    Push website only if there are changes
---
 .github/workflows/publish-website.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/publish-website.yml 
b/.github/workflows/publish-website.yml
index fee19d8..f83896b 100644
--- a/.github/workflows/publish-website.yml
+++ b/.github/workflows/publish-website.yml
@@ -60,5 +60,7 @@ jobs:
           git reset -- avatica/javadocAggregate/        # Restore the avatica 
javadoc
           git checkout -- avatica/javadocAggregate/
           git add .
-          git commit -m "Website deployed from calcite-avatica-go@$GITHUB_SHA"
-          git push origin main
+          if ! git diff-index --quiet HEAD; then
+            git commit -m "Website deployed from 
calcite-avatica-go@$GITHUB_SHA"
+            git push origin main
+          fi
\ No newline at end of file

Reply via email to