mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
Updated to not skip cache
This commit is contained in:
parent
792069e9f3
commit
fef22a2be7
2 changed files with 1 additions and 2 deletions
|
@ -34,7 +34,6 @@ runs:
|
||||||
- run: |
|
- run: |
|
||||||
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
if: steps.cache-postgresql.outputs.cache-hit != 'true'
|
|
||||||
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
|
||||||
|
|
|
@ -37,7 +37,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
|
||||||
# Install PostgreSQL
|
# Install PostgreSQL
|
||||||
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
|
||||||
elif [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
|
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
|
elif [[ "$(uname -s)" == "Darwin" ]]; then
|
||||||
brew update
|
brew update
|
||||||
brew install "postgresql@$INPUT_POSTGRESQL_VERSION"
|
brew install "postgresql@$INPUT_POSTGRESQL_VERSION"
|
||||||
|
|
Loading…
Add table
Reference in a new issue