From 9d6f680d225a454de288ccc215d56aec239d550c Mon Sep 17 00:00:00 2001 From: user2589 Date: Sun, 26 Jul 2020 11:54:38 -0400 Subject: [PATCH] ci: ignore gh-pages commit exit code in case there were no changes --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91a8a51..8437152 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,5 +60,5 @@ jobs: git config user.name "github-actions" git config user.email "github-actions@github.com" git add . - git commit -m "github pages" - git push \ No newline at end of file + # git commit will fail if there are no changes, thus ignore exit code + git commit -m "github pages" -a && git push || true \ No newline at end of file