From e9a909669043422e08eb9b7b4e573c18874c6569 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 12 Sep 2023 11:00:57 -0600 Subject: [PATCH] Add support for skipping cache for windows --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index 28a212d..117f5ba 100644 --- a/action.yml +++ b/action.yml @@ -34,6 +34,15 @@ runs: - run: | bash $GITHUB_ACTION_PATH/entrypoint.sh shell: bash + # Skip if cache hit and it's on Windows + if: | + ( + runner.os == 'Windows' && steps.cache-postgresql.outputs.cache-hit != 'true' + ) + || + ( + runner.os != 'Windows' + ) env: # INPUT_ is not available in Composite run steps # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611