From e9750d5a085ac64b127d07e988ce45292303fb1a Mon Sep 17 00:00:00 2001 From: Lim Chee Kin Date: Fri, 20 Oct 2023 16:08:24 +0800 Subject: [PATCH] chore: check for changes before commit --- .github/workflows/browser-tests.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index 5a5c248..033c02b 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -34,5 +34,7 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "github@users.noreply.github.com" git add integration_test/reports - git commit -m "chore: added integration test reports" - git push + if [ -n "$(git status --porcelain)" ]; then + git commit -m "chore: added integration test reports" + git push + fi