Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco authored Dec 20, 2023
1 parent 56e9734 commit 423a41a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description: Create or Delete a branch database

inputs:
branch_action:
description: 'Create or Delete a branch database'
required: true
description: 'Create, Recreate or Delete a branch database. Default is Create.'
required: false
default: 'Create'
github_ref_name:
description: 'GitHub ref_name property'
required: true
Expand Down Expand Up @@ -36,6 +37,14 @@ runs:
aws-secret-access-key: ${{ inputs.aws_secret_key }}
aws-region: ${{ inputs.aws_region }}

- name: Delete Branch Database
shell: bash
if: ${{ inputs.branch_action == 'Recreate' || inputs.branch_action == 'Delete' }}
run: |
echo "Deleting branch database ${{ inputs.github_ref_name }}"
chmod +x ./data/delete_branch_database.sh
./data/delete_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.github_ref_name }}
- name: Create Branch Database
if: ${{ inputs.branch_action == 'Create' }}
shell: bash
Expand All @@ -44,10 +53,4 @@ runs:
chmod +x ./data/create_branch_database.sh
./data/create_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.github_ref_name }} ${{ inputs.github_actor }}
- name: Delete Branch Database
if: ${{ inputs.branch_action == 'Delete' }}
shell: bash
run: |
echo "Deleting branch database ${{ inputs.github_ref_name }}"
chmod +x ./data/delete_branch_database.sh
./data/delete_branch_database.sh BuildUserDatabaseConnectionSettings ${{ inputs.github_ref_name }}

0 comments on commit 423a41a

Please sign in to comment.