diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index bc0714920de..b407a8a3c1f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -61,7 +61,8 @@ jobs: run: | if [[ "${{ runner.os }}" == "Linux" ]]; then sudo mkdir -p /usr/local/.ghcup/cache - sudo chmod -R 777 /usr/local/.ghcup/cache + sudo chown -R $USER /usr/local/.ghcup + sudo chmod -R 777 /usr/local/.ghcup fi - uses: haskell/actions/setup@v2 id: setup-haskell