diff --git a/action.yml b/action.yml index ee7bb84..28a212d 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,6 @@ runs: - run: | bash $GITHUB_ACTION_PATH/entrypoint.sh shell: bash - if: steps.cache-postgresql.outputs.cache-hit != 'true' env: # INPUT_ is not available in Composite run steps # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611 diff --git a/entrypoint.sh b/entrypoint.sh index bc424d6..351ce61 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,7 +37,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then # Install PostgreSQL sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION" elif [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then - choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y --no-progress + choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y --no-progress --use-download-cache elif [[ "$(uname -s)" == "Darwin" ]]; then brew update brew install "postgresql@$INPUT_POSTGRESQL_VERSION"