From c00d9b21722b774d42275771b43f465df6d5d7e2 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 11 Sep 2023 20:37:44 -0600 Subject: [PATCH] Updated cache location for windows --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 94ac954..7f37dba 100644 --- a/action.yml +++ b/action.yml @@ -18,8 +18,7 @@ runs: elif [[ "${{ runner.os }}" == "macOS" ]]; then cache_dir=$(brew --cache postgresql@${{ inputs.postgresql_version }}) elif [[ "${{ runner.os }}" == "Windows" ]]; then - choco config get cacheLocation - ls -al $(choco config get cacheLocation) + choco search postgresql --exact --all-versions --limit-output --order-by-popularity --by-id-only --approved-only --download-cache cache_dir=$(choco cache list | grep 'postgresql${{ inputs.postgresql_version }}') fi echo "cache_dir=$cache_dir" >> "$GITHUB_OUTPUT"