From b58fc8a98b5134c66f9e2d9690167907d09def72 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 30 Dec 2021 17:39:17 +0000 Subject: [PATCH] Change just the cache folder --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 995e8306..abf10433 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -139,4 +139,5 @@ jobs: key: ${{ secrets.DEPLOYMENT_KEY }} script: | cd ${{ env.releasesDir }} + ls -dt ${{ env.releasesDir }}/* | tail -n +4 | xargs -d "\n" sudo chown -R ${{ secrets.HTTP_USER }}:${{ secrets.HTTP_USER }} ./bootstrap/cache; ls -dt ${{ env.releasesDir }}/* | tail -n +4 | xargs -d "\n" rm -rf;