Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Sep 12, 2023
1 parent 85e49d0 commit 9bfb271
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ 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:
- uses: actions/checkout@v2
- name: Postgres Dump Backup
uses: tj-actions/[email protected]
with:
database_url: "postgres://test_user:test_user_password@localhost:5432/testdb"
path: "backups/backup.sql"
options: "-O"
```
### Using a different PostgreSQL version
```yaml
...
steps:
Expand All @@ -15,6 +31,7 @@ Run [pg\_dump](https://www.postgresql.org/docs/9.6/app-pgdump.html) to generate
uses: tj-actions/[email protected]
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"
```
Expand Down

0 comments on commit 9bfb271

Please sign in to comment.