mirror of
https://github.com/tj-actions/pg-dump.git
synced 2025-06-11 13:12:32 +00:00
Updated the script
This commit is contained in:
parent
ccd8792e24
commit
68260fe408
3 changed files with 34 additions and 2 deletions
10
action.yml
10
action.yml
|
@ -20,9 +20,15 @@ runs:
|
|||
using: 'composite'
|
||||
steps:
|
||||
- run: |
|
||||
mkdir -p $(dirname "${{ inputs.path }}")
|
||||
pg_dump ${{ inputs.options }} -d "${{ inputs.database_url }}" > "${{ inputs.path }}"
|
||||
bash $GITHUB_ACTION_PATH/entrypoint.sh
|
||||
shell: bash
|
||||
env:
|
||||
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
|
||||
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
|
||||
INPUT_POSTGRESQL_VERSION: ${{ inputs.postgresql_version }}
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
INPUT_DATABASE_URL: ${{ inputs.database_url }}
|
||||
INPUT_OPTIONS: ${{ inputs.options }}
|
||||
branding:
|
||||
icon: hard-drive
|
||||
color: white
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue