Skip to content

Commit

Permalink
DVO-5133
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco authored Sep 10, 2024
1 parent 4cce4f7 commit b0bda5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ GitHub property 'github.ref' used to determine the branch name.
#### 'github_actor' (required)
GitHub property 'github.actor' to capture who is initiating the action.

#### 'sql_dump' (optional)
Set to false by default. Used for debugging. Upload dump.sql file as dump-sql artifact to workflow.

#### 'aws_access_key' (required)
Access key for Aws upload.

Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
github_actor:
description: 'GitHub actor property'
required: true
sql_dump:
description: 'dump.sql file upload as dump-sql artifact'
default: false
required: false
aws_access_key:
description: 'AWS Access Key (Required if no aws-actions/configure-aws-credentials)'
required: true
Expand Down Expand Up @@ -58,10 +62,10 @@ runs:
run: bash ${{ github.action_path }}/script.sh

- name: Upload Dump.sql
if: success() || failure()
if: inputs.sql_dump == 'true' && (success() || failure())
uses: actions/upload-artifact@v4
with:
path: dump.sql
name: dump-sql
retention-days: 1
if-no-files-found: ignore
if-no-files-found: ignore

0 comments on commit b0bda5f

Please sign in to comment.