0
0
Fork 0
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:
Tonye Jack 2023-09-12 13:08:05 -06:00 committed by GitHub
parent 85e49d0be4
commit 9bfb271922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: