From a304a7d10e71fb83bff8ab1647bd7b2031fa77da Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 23 Dec 2021 22:25:06 -0300 Subject: [PATCH] Fix bug in yml --- .github/workflows/syncBranches.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/syncBranches.yml b/.github/workflows/syncBranches.yml index 812a885..d736bf1 100644 --- a/.github/workflows/syncBranches.yml +++ b/.github/workflows/syncBranches.yml @@ -39,12 +39,11 @@ jobs: git config --local user.email "$(git log --format=%ae | head -n 1)" mv cocoArtifact/install.sh index.html rm -rf cocoArtifact - if [ -z "$(git status --porcelain)" ]; then - return + if [ ! -z "$(git status --porcelain)" ]; then + git add index.html + git commit -m "Add changes from master branch" + git push fi - git add index.html - git commit -m "Add changes from master branch" - git push - uses: geekyeggo/delete-artifact@v1 with: