From 6a3e3edd068dc725741169476a10ddb3113f283f Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 18 May 2022 14:42:51 +0300 Subject: [PATCH] Handling error if there is nothing to commit --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 418fedcd..804c5f3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,4 +224,4 @@ jobs: git commit -m "Updating CodeExamples.md" branch=${GITHUB_HEAD_REF#refs/heads/} echo Pushing changes to branch: ${branch} - git push origin HEAD:${branch} --force \ No newline at end of file + git push origin HEAD:${branch} --force || echo Nothing to commit \ No newline at end of file