From 216a20ec92479c35d7994d17a6ee1566d01a82ce Mon Sep 17 00:00:00 2001 From: Julen Smith <55221433+Julen-Smith@users.noreply.github.com> Date: Tue, 12 Sep 2023 09:43:31 +0200 Subject: [PATCH] root updated --- .github/workflows/nodejs_deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs_deploy.yml b/.github/workflows/nodejs_deploy.yml index fe98217..4d6994a 100644 --- a/.github/workflows/nodejs_deploy.yml +++ b/.github/workflows/nodejs_deploy.yml @@ -52,12 +52,11 @@ jobs: sudo apt-get purge -y nodejs npm && \ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - && \ sudo apt-get install -y git nodejs || exit 1; \ - cd /root && \ - if [ ! -d \".git\" ]; then \ - git clone https://github.com/Julen-Smith/CICD-Github-Actions.git . || exit 1; \ - else \ - git pull || exit 1; \ + cd ~ && \ + if [ ! -d \"CICD-Github-Actions\" ]; then \ + git clone https://github.com/Julen-Smith/CICD-Github-Actions.git || exit 1; \ fi && \ + cd CICD-Github-Actions && \ git checkout Aws_deploy || exit 1 && \ npm install || exit 1 && \ sudo npm install -g pm2 || exit 1 && \