Fix owner after checkout

This commit is contained in:
Vadim Zeitlin 2021-06-27 13:42:00 +02:00
parent 769cb2e205
commit 3e5cf7a5c7

View File

@ -112,8 +112,14 @@ jobs:
with: with:
submodules: 'recursive' submodules: 'recursive'
- name: Set environment variables - name: System and environment setup
run: | run: |
normal_uid=`id --user`
# The checkout actions runs as root and there doesn't seem to be any
# way to change this, so just adjust the owner after checkout.
sudo chown -R $normal_uid $GITHUB_WORKSPACE
echo "WINEPATH=$(winepath --windows $(pwd)/lib)" >> $GITHUB_ENV echo "WINEPATH=$(winepath --windows $(pwd)/lib)" >> $GITHUB_ENV
cpu_count=`nproc` cpu_count=`nproc`