Skip to content

Commit

Permalink
[Actions] Updated .github/actions/cloudformation-deploy/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Sep 11, 2024
1 parent b239f17 commit 69250c7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/actions/cloudformation-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
CLOUD_FORMATION_TEMPLATE_FILE:
description: 'The Cloud Formation file to deploy'
required: true
CLOUDFORMATION_SNS_ARN:
description: 'SSN Notification ARN'
required: false
DOCKER_APP_OWNER:
description: 'docker app owner'
required: true
Expand Down Expand Up @@ -82,7 +85,19 @@ runs:
echo "Validated parameters:"
jq . "${{github.workspace}}/TemplateParameters.json"
- name: "AWS Cloudformation Deploy"
- if: inputs.CLOUDFORMATION_SNS_ARN != ''
name: "AWS Cloudformation Deploy (With Notifications)"
shell: bash
run: |
/usr/local/aws-cli/v2/current/bin/aws \
cloudformation deploy \
--template-file "${{inputs.CLOUD_FORMATION_TEMPLATE_FILE}}" \
--stack-name "${{inputs.CLOUD_FORMATION_STACK}}" \
--parameter-overrides file://TemplateParameters.json \
--notification-arns "${{inputs.CLOUDFORMATION_SNS_ARN}}"
- if: inputs.CLOUDFORMATION_SNS_ARN == ''
name: "AWS Cloudformation Deploy (No Notifications)"
shell: bash
run: |
/usr/local/aws-cli/v2/current/bin/aws \
Expand Down

0 comments on commit 69250c7

Please sign in to comment.