From 242b4d6e4bb9de68aba9e3619fb4bc6b56e0ca1b Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 11 Sep 2023 20:23:01 -0600 Subject: [PATCH] Add support for canceling other jobs --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 79d9aa2..f006025 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,8 @@ runs: elif [[ "${{ runner.os }}" == "macOS" ]]; then cache_dir=$(brew --cache postgresql@${{ inputs.postgresql_version }}) elif [[ "${{ runner.os }}" == "Windows" ]]; then - cache_dir=$(choco search postgresql${{ inputs.postgresql_version }} --exact --limit-output | grep "^postgresql " | awk '{print $NF}') + choco cache list + cache_dir=$(choco cache list | grep 'postgresql${{ inputs.postgresql_version }}') fi echo "cache_dir=$cache_dir" >> "$GITHUB_OUTPUT" shell: bash