From 1d33f65701c4232a98489974a73116b4e67c7c67 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Tue, 19 May 2020 09:33:14 +0200 Subject: [PATCH] github: try sourcing nvm Reference: https://github.com/appleboy/ssh-action/issues/21 --- .github/workflows/deploy.v2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.v2.yml b/.github/workflows/deploy.v2.yml index ac803a18..6cb07555 100644 --- a/.github/workflows/deploy.v2.yml +++ b/.github/workflows/deploy.v2.yml @@ -15,7 +15,8 @@ jobs: key: ${{ secrets.KEY }} port: ${{ secrets.PORT }} script: | - export PATH=$PATH:/home/imba/.nvm/versions/node/v13.14.0/bin + export NVM_DIR=~/.nvm + source ~/.nvm/nvm.sh git -C /home/imba/v2.imba.io stash git -C /home/imba/v2.imba.io pull origin v2 cd /home/imba/v2.imba.io && \