From 80ed2c779cce87a42fbd730a140088225e7226db Mon Sep 17 00:00:00 2001 From: amgno Date: Thu, 26 Sep 2024 01:27:01 +0200 Subject: [PATCH] swag v2 --- .github/workflows/main2.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 &&