diff --git a/.github/workflows/main2.yml b/.github/workflows/main2.yml index fe2bd80..c2c8294 100644 --- a/.github/workflows/main2.yml +++ b/.github/workflows/main2.yml @@ -20,10 +20,10 @@ jobs: fi && cd /home/deployer/amgno.github.io && echo ✅ Pulling from GitHub && - git fetch origin && - git reset --hard origin/main && - git clean -fd && - git pull && + sudo git fetch origin && + sudo git reset --hard origin/main && + sudo git clean -fd && + sudo git pull && echo ✅ Starting docker && echo ${{ secrets.PASSWORD }} | sudo -S docker-compose down && echo ${{ secrets.PASSWORD }} | sudo -S docker-compose up -d &&