From 9f111b91b15323f2d9c7f2b324f816e19b8e85f5 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 7 May 2024 16:41:07 +0400 Subject: [PATCH] move git commit and push after checking for diff --- .github/workflows/docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 7914c1db..060b2f8e 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -27,9 +27,9 @@ jobs: git config user.name 'GitHub Action' git config user.email 'action@github.com' git add . - git commit -m "Aotumated: Update starship documentation from starship repo" if git diff --cached --quiet; then echo "No changes to commit." else + git commit -m "Aotumated: Update starship documentation from starship repo" git push fi