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"