Update syncBranches.yml

This commit is contained in:
Santiago Lo Coco 2021-12-23 22:15:05 -03:00 committed by GitHub
parent 43a49ad69c
commit f8ff480be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -35,19 +35,15 @@ jobs:
- name: Push to gh-pages - name: Push to gh-pages
run: | run: |
ls -R
cat cocoArtifact/install.sh
git config --local user.name "$(git log --format=%an | head -n 1)" git config --local user.name "$(git log --format=%an | head -n 1)"
git config --local user.email "$(git log --format=%ae | head -n 1)" git config --local user.email "$(git log --format=%ae | head -n 1)"
mv cocoArtifact/install.sh index.html mv cocoArtifact/install.sh index.html
git status git status
git diff --cached --exit-code if [ -z $(git status --porcelain)" ]; then
if [ $? -eq 1 ]; then
echo "Acá funciona?" echo "Acá funciona?"
fi fi
git add index.html git add index.html
rm -rf cocoArtifact rm -rf cocoArtifact
git status
gStatus=$(git status) gStatus=$(git status)
if echo $gStatus | grep -q "Changes to be committed"; then if echo $gStatus | grep -q "Changes to be committed"; then
echo "Hay cambios sin commitear" echo "Hay cambios sin commitear"
@ -57,4 +53,4 @@ jobs:
- uses: geekyeggo/delete-artifact@v1 - uses: geekyeggo/delete-artifact@v1
with: with:
name: pruebaArtifact name: cocoArtifact