@@ -22,8 +22,8 @@ inputs:
22
22
default : " 5432"
23
23
required : false
24
24
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 "
27
27
ssl :
28
28
description : When "true", encrypt connections using SSL (TLS).
29
29
default : " false"
43
43
steps :
44
44
- name : Install PostgreSQL
45
45
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 ."
48
48
exit 1
49
49
fi
50
50
@@ -82,11 +82,15 @@ runs:
82
82
echo "PQ_LIB_DIR=$PG_LIBDIR" >> $GITHUB_ENV
83
83
84
84
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
85
89
export HOMEBREW_NO_ENV_HINTS=1
86
90
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
87
91
export HOMEBREW_NO_INSTALL_CLEANUP=1
88
92
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 }}
90
94
91
95
# Link PostgreSQL binaries from /usr/local/bin in order to make them
92
96
# available globally. The --overwrite option is required since some
0 commit comments