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 5623786 commit 09a6595
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/actions/upload-to-s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ runs:
aws-access-key-id: ${{ inputs.aws_access_key_id }}
aws-secret-access-key: ${{ inputs.aws_secret_access_key }}
aws-region: ${{ inputs.aws_region }}
aws-session-token: ''
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: |
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
s3cmd sync ${{ inputs.path_to_upload }} s3://${{ inputs.s3_bucket }}/${{ inputs.target_path }} --delete

0 comments on commit 09a6595

Please sign in to comment.