mirror of
https://github.com/tj-actions/pg-dump.git
synced 2024-12-20 01:18:49 +00:00
Update README.md
This commit is contained in:
parent
85e49d0be4
commit
9bfb271922
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
@ -7,6 +7,8 @@ Run [pg\_dump](https://www.postgresql.org/docs/9.6/app-pgdump.html) to generate
|
|||
|
||||
## Usage
|
||||
|
||||
### Using the default PostgreSQL installed on the runner
|
||||
|
||||
```yaml
|
||||
...
|
||||
steps:
|
||||
|
@ -19,6 +21,21 @@ Run [pg\_dump](https://www.postgresql.org/docs/9.6/app-pgdump.html) to generate
|
|||
options: "-O"
|
||||
```
|
||||
|
||||
### Using a different PostgreSQL version
|
||||
|
||||
```yaml
|
||||
...
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Postgres Dump Backup
|
||||
uses: tj-actions/pg-dump@v2.3
|
||||
with:
|
||||
database_url: "postgres://test_user:test_user_password@localhost:5432/testdb"
|
||||
postgresql_version: "15" # Note: Only the major version is required e.g. 12, 14, 15
|
||||
path: "backups/backup.sql"
|
||||
options: "-O"
|
||||
```
|
||||
|
||||
If you feel generous and want to show some extra appreciation:
|
||||
|
||||
Support this project with a :star:
|
||||
|
|
Loading…
Add table
Reference in a new issue