mirror of
https://github.com/tj-actions/pg-dump.git
synced 2025-06-11 13:12:32 +00:00
Initial commit.
This commit is contained in:
commit
4ed55614ba
11 changed files with 221 additions and 0 deletions
24
action.yml
Normal file
24
action.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Postgres Dump Backup
|
||||
description: Run pg_dump to generate a backup
|
||||
author: tj-actions
|
||||
inputs:
|
||||
database_url:
|
||||
description: 'Database URL'
|
||||
required: true
|
||||
path:
|
||||
description: 'Backup file output location'
|
||||
required: true
|
||||
args:
|
||||
description: 'Extra arguments passed to pg_dump'
|
||||
required: true
|
||||
default: '-O'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- run: |
|
||||
pg_dump "${{ inputs.args }}" -d "${{ inputs.database_url }}" > "${{ inputs.path }}"
|
||||
shell: bash
|
||||
branding:
|
||||
icon: hard-drive
|
||||
color: white
|
Loading…
Add table
Add a link
Reference in a new issue