This commit is contained in:
Vivek Teega 2023-12-18 19:04:47 +05:30
parent ab67d08f53
commit 999332b1ae

View File

@ -17,14 +17,14 @@ jobs:
echo "Folder exists. Skipping Git clone." echo "Folder exists. Skipping Git clone."
else else
echo "Folder does not exist. Cloning repository..." echo "Folder does not exist. Cloning repository..."
git clone https://github.com/ranchimall/dappbundle.git cd /home/production/deployed/ && git clone https://github.com/ranchimall/dappbundle.git
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. Skipping Git clone."
else else
echo "Repo does not exist. Cloning repository..." echo "Repo does not exist. Cloning repository..."
cd "/home/production/deployed/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}.git cd /home/production/deployed/dappbundle && git clone "https://github.com/ranchimall/${{ github.event.repository.name }}.git"
fi fi
cd "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" && rm -r .git cd "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" && rm -r .git