From b8ebf21d65f560213c2686ff635c6781b2dd5eaf Mon Sep 17 00:00:00 2001 From: lxgr-linux <64218491+lxgr-linux@users.noreply.github.com> Date: Thu, 30 Nov 2023 10:00:55 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 634cdf49..e99eb7e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,6 @@ jobs: echo "${{ secrets.LXGR_DEPLOY_PRIV }}" > ~/.ssh/id_rsa ssh-keyscan -H ${{ secrets.LXGR_HOST }} > ~/.ssh/known_hosts - name: connect and pull - run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$LABEL && git fetch && git checkout ${{ github.event.pull_request.head.ref }} && git pull && npm i && npm run build && exit" + run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$LABEL && git fetch && git checkout ${{ github.event.pull_request.head.ref }} && git pull && npm i && npm run build && chgrp -R www-data ~/$LABEL && exit" - name: cleanup run: rm -rf ~/.ssh