Skip to content

Commit

Permalink
WIP: add composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
beuluis committed Dec 17, 2024
1 parent 0cd2878 commit 5623786
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/actions/upload-to-s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ runs:
aws-region: ${{ inputs.aws_region }}
mask-aws-account-id: true

- name: Set endpoint URL
if: inputs.endpoint_url != ''
shell: bash
run: |
aws configure set endpoint_url ${{ inputs.endpoint_url }}
- name: Deploy to S3
shell: bash
run: |
s3cmd sync ${{ inputs.path_to_upload }} s3://${{ inputs.s3_bucket }}/${{ inputs.target_path }} --delete
endpoint_option=""
if [ -n "${{ inputs.endpoint_url }}" ]; then
endpoint_option="--endpoint-url ${{ inputs.endpoint_url }}"
fi
s3cmd sync ${{ inputs.path_to_upload }} s3://${{ inputs.s3_bucket }}/${{ inputs.target_path }} --delete $endpoint_option

0 comments on commit 5623786

Please sign in to comment.