From bd003dfcf63d1439ab6396fb33b448007023d5c4 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 8 Oct 2024 17:19:35 -0400 Subject: [PATCH] ci(submodule): only commit on diff --- .gitea/workflows/submodule.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/submodule.yaml b/.gitea/workflows/submodule.yaml index 1fcb60f..3167645 100644 --- a/.gitea/workflows/submodule.yaml +++ b/.gitea/workflows/submodule.yaml @@ -31,7 +31,7 @@ jobs: run: | git status git submodule status - git commit -am "chore: update submodule references" + git diff-index --quiet HEAD || git commit -am "chore: update submodule references" git status git submodule status git push