Compare commits

...

10 Commits

Author SHA1 Message Date
Vivek Teega
8ce8e46239 test
Some checks failed
Pull changes and deploy API / Build (push) Has been cancelled
2023-12-18 20:06:33 +05:30
Vivek Teega
5cdf812539 Test 2023-12-18 19:51:10 +05:30
Vivek Teega
22f44d0ec2 test 2023-12-18 19:45:54 +05:30
Vivek Teega
e87c0a480f test 2023-12-18 19:38:10 +05:30
Vivek Teega
59ba9bb815 test 2023-12-18 19:35:55 +05:30
Vivek Teega
35f3e694c6 Test 2023-12-18 19:21:33 +05:30
Vivek Teega
d00cd300b3 test 2023-12-18 19:17:29 +05:30
Vivek Teega
44e9b72836 test 2023-12-18 19:15:26 +05:30
Vivek Teega
f008ed6efc Test 2023-12-18 19:10:03 +05:30
Vivek Teega
a5ac428a36 test 2023-12-18 19:07:16 +05:30

View File

@ -13,21 +13,20 @@ jobs:
password: ${{ secrets.P_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
if [ -d "/home/production/deployed/dappbundle" ]; then
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle" ]; then
echo "Folder exists. Skipping Git clone."
else
echo "Folder does not exist. Cloning repository..."
cd /home/production/deployed/ && git clone https://github.com/ranchimall/dappbundle.git
cd ${{ secrets.DEPLOYMENT_LOCATION}}/ && git clone https://github.com/ranchimall/dappbundle.git
fi
if [ -d "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" ]; then
echo "Repository exists. Skipping Git clone."
else
echo "Repo does not exist. Cloning repository..."
cd /home/production/deployed/dappbundle && git clone "https://github.com/ranchimall/${{ github.event.repository.name }}.git"
if [ -d "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" ]; then
echo "Repository exists. Remove folder "
rm -r "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}"
fi
cd "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" && rm -r .git
echo "Cloning repository..."
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle && git clone https://github.com/ranchimall/${{ github.event.repository.name }}
cd "${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/${{ github.event.repository.name }}" && rm -r .gitattributes
cd ${{ secrets.DEPLOYMENT_LOCATION}}/dappbundle/ && git add . && git commit -m "Workflow updating files of ${{ github.event.repository.name }}" && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"