Returned selective chown.

This commit is contained in:
Alexander Artemenko 2021-02-25 00:30:11 +03:00
parent d529a19ef4
commit 403fe83da2

View file

@ -22,7 +22,11 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Grant All Perms on /usr/local/etc/roswell - name: Grant All Perms on /usr/local/etc/roswell
# This makes cache restoration possible # 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 # - name: Get Current Month
# id: current-month # id: current-month
# run: | # run: |
@ -41,6 +45,11 @@ jobs:
/usr/local/etc/roswell /usr/local/etc/roswell
.qlot .qlot
key: "${{ runner.os }}-build2-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}" 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 - name: Check dirs
run: | run: |
set -x set -x
@ -50,11 +59,6 @@ jobs:
ls /usr/local/etc/roswell ls /usr/local/etc/roswell
ls .qlot ls .qlot
if: steps.cache.outputs.cache-hit == 'true' 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 - uses: 40ants/setup-lisp@test-cache
# if: steps.cache.outputs.cache-hit != 'true' # if: steps.cache.outputs.cache-hit != 'true'
- name: Check dirs again - name: Check dirs again