File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ See [action.yml](action.yml)
11
11
Basic:
12
12
``` yaml
13
13
steps :
14
- - uses : harmon758 /postgresql-action@v1
14
+ - uses : danielweller-swp /postgresql-action@v1
15
15
with :
16
16
postgresql version : ' 11' # See https://hub.docker.com/_/postgres for available versions
17
+ postgresql init scripts : ' init-db'
18
+ postgresql conf : ' max_prepared_transactions=100'
17
19
` ` `
18
20
19
21
# License
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ inputs:
27
27
description : ' POSTGRES_INIT_SCRIPTS - directory containing DB init scripts'
28
28
required : false
29
29
default : ' '
30
+ postgresql conf :
31
+ description : ' POSTGRES_CONF - postgres configurations'
32
+ required : false
33
+ default : ' '
30
34
runs :
31
35
using : ' docker'
32
36
image : ' Dockerfile'
Original file line number Diff line number Diff line change 14
14
15
15
docker_run=" $docker_run -d -p 5432:5432 postgres:$INPUT_POSTGRESQL_VERSION "
16
16
17
+ if [ ! -z " $INPUT_POSTGRESQL_CONF " ]
18
+ then
19
+ docker_run=" $docker_run -c '$INPUT_POSTGRESQL_CONF '"
20
+ fi
21
+
17
22
sh -c " $docker_run "
You can’t perform that action at this time.
0 commit comments