From 403fe83da28f56a3b71fa11469b60a47df31fdec Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Thu, 25 Feb 2021 00:30:11 +0300 Subject: [PATCH] Returned selective chown. --- .github/workflows/docs.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7e3357e..80378a9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,11 @@ jobs: - uses: actions/checkout@v1 - name: Grant All Perms on /usr/local/etc/roswell # This makes cache restoration possible - run: sudo chown -R "${USER}" /usr/local + run: | + sudo mkdir -p /usr/local/etc/roswell + sudo chown "${USER}" /usr/local/etc/roswell + # Here the ros binary will be restored: + sudo chown "${USER}" /usr/local/bin # - name: Get Current Month # id: current-month # run: | @@ -41,6 +45,11 @@ jobs: /usr/local/etc/roswell .qlot key: "${{ runner.os }}-build2-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}" + - name: Restore Path + run: | + echo $HOME/.roswell/bin >> $GITHUB_PATH + echo .qlot/bin >> $GITHUB_PATH + if: steps.cache.outputs.cache-hit == 'true' - name: Check dirs run: | set -x @@ -50,11 +59,6 @@ jobs: ls /usr/local/etc/roswell ls .qlot if: steps.cache.outputs.cache-hit == 'true' - - name: Restore Path - run: | - echo $HOME/.roswell/bin >> $GITHUB_PATH - echo .qlot/bin >> $GITHUB_PATH - if: steps.cache.outputs.cache-hit == 'true' - uses: 40ants/setup-lisp@test-cache # if: steps.cache.outputs.cache-hit != 'true' - name: Check dirs again