From 485db8ac03ced001cbbdcb8f9a7d3c80586fcc98 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 11 Sep 2023 20:43:51 -0600 Subject: [PATCH] Updated cache location for windows --- action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 201a8c9..990de1d 100644 --- a/action.yml +++ b/action.yml @@ -14,12 +14,11 @@ runs: run: | set -x if [[ "${{ runner.os }}" == "Linux" ]]; then - cache_dir=$(apt-cache policy postgresql-${{ inputs.postgresql_version }} | awk '/Filename/ {print $2}') + cache_dir="$(apt-cache policy postgresql-${{ inputs.postgresql_version }} | awk '/Filename/ {print $2}')" elif [[ "${{ runner.os }}" == "macOS" ]]; then - cache_dir=$(brew --cache postgresql@${{ inputs.postgresql_version }}) + cache_dir="$(brew --cache postgresql@${{ inputs.postgresql_version }})" elif [[ "${{ runner.os }}" == "Windows" ]]; then - choco search postgresql --download-cache - cache_dir=$(choco cache list | grep 'postgresql${{ inputs.postgresql_version }}') + cache_dir="~/AppData/Local/Temp/chocolatey/postgresql-${{ inputs.postgresql_version }}" fi echo "cache_dir=$cache_dir" >> "$GITHUB_OUTPUT" shell: bash