Update syncBranches.yml
This commit is contained in:
parent
43a49ad69c
commit
f8ff480be2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue