From 8aac1c5e5a9d75716b99fda7d999c92acf77a338 Mon Sep 17 00:00:00 2001 From: hav-johwal <166103136+hav-johwal@users.noreply.github.com> Date: Wed, 22 Jan 2025 10:53:42 +0100 Subject: [PATCH] ci: supports building the same version again --- .github/workflows/build-documentation.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 4522df2..90c6723 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -58,7 +58,9 @@ jobs: git config user.name uvmsci git config user.email uvmsci@gmail.com git add mkdocs.yml - git commit -am "docs: updates to version ${FULL_VERSION} in mkdocs.yml" + [ -n "$(git status --porcelain)" ] && \ + git commit -am "docs: updates to version ${FULL_VERSION} in mkdocs.yml" || \ + echo "Building the same version again" - name: Build documentation id: build-with-mkdocs