Skip to content

Commit

Permalink
Merge pull request #2611 from ASFHyP3/edc-s3-read
Browse files Browse the repository at this point in the history
quote -z expressions to allow for whitespace in variable values
  • Loading branch information
asjohnston-asf authored Feb 20, 2025
2 parents b8ab6b0 + e0ef04d commit 7b2f54a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/deploy-hyp3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ runs:
- name: Package and deploy
shell: bash
run: |
[ -z ${{ inputs.CLOUDFORMATION_ROLE_ARN }} ] && export ROLE_STATEMENT="" \
[ -z "${{ inputs.CLOUDFORMATION_ROLE_ARN }}" ] && export ROLE_STATEMENT="" \
|| export ROLE_STATEMENT="--role-arn ${{ inputs.CLOUDFORMATION_ROLE_ARN }}"
[ -z ${{ inputs.DOMAIN_NAME }} ] && export DOMAIN_NAME="" \
[ -z "${{ inputs.DOMAIN_NAME }}" ] && export DOMAIN_NAME="" \
|| export DOMAIN_NAME="DomainName='${{ inputs.DOMAIN_NAME }}'"
[ -z ${{ inputs.CERTIFICATE_ARN }} ] && export CERTIFICATE_ARN="" \
[ -z "${{ inputs.CERTIFICATE_ARN }}" ] && export CERTIFICATE_ARN="" \
|| export CERTIFICATE_ARN="CertificateArn='${{ inputs.CERTIFICATE_ARN }}'"
[ -z ${{ inputs.BUCKET_READ_PRINCIPALS }} ] && export BUCKET_READ_PRINCIPALS="" \
[ -z "${{ inputs.BUCKET_READ_PRINCIPALS }}" ] && export BUCKET_READ_PRINCIPALS="" \
|| export BUCKET_READ_PRINCIPALS="BucketReadPrincipals='${{ inputs.BUCKET_READ_PRINCIPALS }}'"
[ -z ${{ inputs.DISTRIBUTION_URL }} ] && export DISTRIBUTION_URL="" \
[ -z "${{ inputs.DISTRIBUTION_URL }}" ] && export DISTRIBUTION_URL="" \
|| export DISTRIBUTION_URL="DistributionUrl='${{ inputs.DISTRIBUTION_URL }}'"
aws cloudformation package \
Expand Down

0 comments on commit 7b2f54a

Please sign in to comment.