From 0c230d6a62141e88bd6733725f8001a4fe7242e9 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 27 Dec 2021 13:10:29 +0000 Subject: [PATCH] Use deplopyment user in tifying up step --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f3c88b9a..d1816c73 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -118,5 +118,5 @@ jobs: key: ${{ secrets.DEPLOYMENT_KEY }} script: | cd ${{ env.releasesDir }} - ls -dt ${{ env.releasesDir }}/* | tail -n +4 | xargs -d "\n" sudo chown -R jonny .; + ls -dt ${{ env.releasesDir }}/* | tail -n +4 | xargs -d "\n" sudo chown -R ${{ secrets.DEPLOYMENT_USER }} .; ls -dt ${{ env.releasesDir }}/* | tail -n +4 | xargs -d "\n" rm -rf;