From 35f3e694c64c16a6b068567d4a88be159da458c7 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 18 Dec 2023 19:21:33 +0530 Subject: [PATCH] Test --- .github/workflows/repopush.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/repopush.yml b/.github/workflows/repopush.yml index 2d43d1e..0abd46d 100644 --- a/.github/workflows/repopush.yml +++ b/.github/workflows/repopush.yml @@ -21,12 +21,13 @@ jobs: 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" + echo "Repository exists. Remove folder " + rm -r "/home/production/deployed/dappbundle/${{ github.event.repository.name }}" 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/ && git push "https://ranchimalldev:${{ secrets.RM_ACCESS_TOKEN }}@github.com/ranchimall/dappbundle.git"