From e44955171d265f16502b03c64d48509c5ae4824c Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Wed, 8 Feb 2023 11:30:39 +0100 Subject: [PATCH] Also change the user --- .github/workflows/validate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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