From 2be22c2a8ef0ae9d2ec8b5eb77753ed19510ddde Mon Sep 17 00:00:00 2001 From: Sergey Skrobotov Date: Tue, 28 Feb 2023 14:34:33 -0800 Subject: [PATCH] Updating documentation github action to handle no changes case --- .github/workflows/documentation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a84545c03..718e90e46 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -29,5 +29,5 @@ jobs: git fetch origin gh-pages git checkout gh-pages cp /tmp/signal-server-openapi.yaml . - git commit -a -m "Updating documentation" - git push origin gh-pages + git diff --quiet || git commit -a -m "Updating documentation" + git push origin gh-pages -q