From 335363eb86f40213541e41768f92b69159ac7f3a Mon Sep 17 00:00:00 2001 From: Barrett LaFrance Date: Thu, 18 Jan 2024 11:05:34 -0600 Subject: [PATCH] feat: prevent pipeline error when /dist doesn't change --- .github/workflows/docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 313371402..2edfbc926 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -118,4 +118,8 @@ jobs: git add --all git commit -m "docs.yml" + # suppress error exit code & return if nothing to commit + retVal=$? + if [ $retVal -eq 1 ]; then exit 0 ; fi + git push origin "$BRANCH" \ No newline at end of file