Skip to content

Commit

Permalink
DAT-1707 clean-up after feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco authored Apr 2, 2024
1 parent 45e1fab commit bccd277
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@ inputs:
description: 'Database name'
required: true
source_database_name:
description: 'Source database name'
description: 'Source database name. Default is patriot_pay'
required: false
default: 'patriot_pay'
github_actor:
description: 'GitHub actor property'
required: true
github_sha:
description: 'GitHub sha property'
required: true
aws_access_key:
description: 'AWS Access Key (Required if no aws-actions/configure-aws-credentials)'
required: true
Expand All @@ -46,7 +43,7 @@ runs:

- name: Delete Branch Database
shell: bash
if: ${{ inputs.branch_action == 'Recreate' || inputs.branch_action == 'Delete' }}
if: ${{ inputs.branch_action == 'Delete' }}
run: |
echo "Deleting branch database ${{ inputs.database_name }}"
chmod +x ./data/delete_branch_database.sh
Expand All @@ -57,8 +54,14 @@ runs:
shell: bash
run: |
echo "Creating branch database ${{ inputs.database_name }}"
echo "Recreate database: ${{ inputs.branch_action == 'Recreate' }}"
chmod +x ./data/create_branch_database.sh
./data/create_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.database_name }} ${{ inputs.github_actor }} ${{ inputs.source_database_name }} ${{ inputs.branch_action == 'Recreate' }}
./data/create_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.database_name }} ${{ inputs.github_actor }} ${{ inputs.source_database_name }} false
- name: Recreate Branch Database
if: ${{ inputs.branch_action == 'Recreate' }}
shell: bash
run: |
echo "Recreate branch database: ${{ inputs.database_name }}"
chmod +x ./data/create_branch_database.sh
./data/create_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.database_name }} ${{ inputs.github_actor }} ${{ inputs.source_database_name }} true

0 comments on commit bccd277

Please sign in to comment.