@@ -22,8 +22,8 @@ inputs:
2222 default : " 5432"
2323 required : false
2424 postgres-version :
25- description : The PostgreSQL major version to install. Either "14", "15", or "16 ".
26- default : " 16 "
25+ description : The PostgreSQL major version to install. Either "14", "15", "16" or "17 ".
26+ default : " 17 "
2727 ssl :
2828 description : When "true", encrypt connections using SSL (TLS).
2929 default : " false"
4343 steps :
4444 - name : Install PostgreSQL
4545 run : |
46- if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16)$ ]]; then
47- echo "::error::postgres-version must be one of: 14, 15, 16."
46+ if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16|17 )$ ]]; then
47+ echo "::error::postgres-version must be one of: 14, 15, 16, 17 ."
4848 exit 1
4949 fi
5050
@@ -82,11 +82,15 @@ runs:
8282 echo "PQ_LIB_DIR=$PG_LIBDIR" >> $GITHUB_ENV
8383
8484 elif [ "$RUNNER_OS" == "macOS" ]; then
85+ # HOMEBREW_GITHUB_ACTIONS is used to skip 'initdb' execution to save
86+ # some seconds. That invocation is not needed because of initdb
87+ # invocation below.
88+ export HOMEBREW_GITHUB_ACTIONS=1
8589 export HOMEBREW_NO_ENV_HINTS=1
8690 export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
8791 export HOMEBREW_NO_INSTALL_CLEANUP=1
8892 export HOMEBREW_NO_INSTALL_UPGRADE=1
89- brew install --quiet --skip-post-install postgresql@${{ inputs.postgres-version }}
93+ brew install --quiet postgresql@${{ inputs.postgres-version }}
9094
9195 # Link PostgreSQL binaries from /usr/local/bin in order to make them
9296 # available globally. The --overwrite option is required since some
0 commit comments