0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00

Add support for skipping cache for windows

This commit is contained in:
Tonye Jack 2023-09-12 11:00:57 -06:00
parent fef22a2be7
commit e9a9096690

View file

@ -34,6 +34,15 @@ runs:
- run: | - run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh bash $GITHUB_ACTION_PATH/entrypoint.sh
shell: bash 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: env:
# INPUT_<VARIABLE_NAME> is not available in Composite run steps # INPUT_<VARIABLE_NAME> is not available in Composite run steps
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611 # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611