diff --git a/.github/workflows/syncBranches.yml b/.github/workflows/syncBranches.yml index b9504f7..812a885 100644 --- a/.github/workflows/syncBranches.yml +++ b/.github/workflows/syncBranches.yml @@ -38,18 +38,13 @@ jobs: git config --local user.name "$(git log --format=%an | head -n 1)" git config --local user.email "$(git log --format=%ae | head -n 1)" mv cocoArtifact/install.sh index.html - git status + rm -rf cocoArtifact if [ -z "$(git status --porcelain)" ]; then - echo "Acá funciona?" + return fi git add index.html - rm -rf cocoArtifact - gStatus=$(git status) - if echo $gStatus | grep -q "Changes to be committed"; then - echo "Hay cambios sin commitear" - git commit -m "Add changes from master branch" - git push - fi + git commit -m "Add changes from master branch" + git push - uses: geekyeggo/delete-artifact@v1 with: