Test
This commit is contained in:
parent
d00cd300b3
commit
35f3e694c6
9
.github/workflows/repopush.yml
vendored
9
.github/workflows/repopush.yml
vendored
@ -21,12 +21,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" ]; then
|
if [ -d "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" ]; then
|
||||||
echo "Repository exists. Skipping Git clone."
|
echo "Repository exists. Remove folder "
|
||||||
else
|
rm -r "/home/production/deployed/dappbundle/${{ github.event.repository.name }}"
|
||||||
echo "Repo does not exist. Cloning repository..."
|
|
||||||
cd /home/production/deployed/dappbundle && git clone "https://github.com/ranchimall/${{ github.event.repository.name }}.git"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Cloning repository..."
|
||||||
|
cd /home/production/deployed/dappbundle && git clone "https://github.com/ranchimall/${{ github.event.repository.name }}.git"
|
||||||
|
|
||||||
cd "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" && rm -r .gitattributes
|
cd "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" && rm -r .gitattributes
|
||||||
cd /home/production/deployed/dappbundle/ && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"
|
cd /home/production/deployed/dappbundle/ && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user