From 9102531c1453e03f972c5d26082b3aff00431056 Mon Sep 17 00:00:00 2001 From: amgno Date: Mon, 23 Sep 2024 12:42:50 +0200 Subject: [PATCH] maybe --- .github/workflows/main2.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main2.yml b/.github/workflows/main2.yml index b0c0303..8dd9d4c 100644 --- a/.github/workflows/main2.yml +++ b/.github/workflows/main2.yml @@ -13,10 +13,14 @@ jobs: ls && echo ✅ Listing directory && echo wow && - cd /home/deployer/amgno.github.io && - echo ✅ Pulling from GitHub && - git pull && - echo ✅ Starting docker && - docker-compose down && - docker-compose up -d && - echo ✅ Done + if [ -d "/home/deployer/amgno.github.io" ]; then + cd /home/deployer/amgno.github.io && + echo ✅ Pulling from GitHub && + git pull && + echo ✅ Starting docker && + docker-compose down && + docker-compose up -d && + echo ✅ Done + else + echo ❌ Directory /home/deployer/amgno.github.io does not exist + fi