From 5f75290e3710e213289735dd287c2d6ea49a7e3c Mon Sep 17 00:00:00 2001 From: Will Cromar Date: Tue, 30 Apr 2024 10:29:40 -0700 Subject: [PATCH] Don't fail docs push if there's nothing to commit (#7001) --- .github/workflows/_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_docs.yml b/.github/workflows/_docs.yml index d68f9e97fe7..378dec9697a 100644 --- a/.github/workflows/_docs.yml +++ b/.github/workflows/_docs.yml @@ -66,6 +66,6 @@ jobs: git config user.email "pytorchxla@gmail.com" git config user.name "torchxlabot2" git add . -v - git commit -m "Update doc from commit ${{ github.sha }}" + git diff --cached --exit-code || git commit -m "Update doc from commit ${{ github.sha }}" git push origin gh-pages if: github.event_name == 'push'