Skip to content

Commit 78656c6

Browse files
committed
update s3 sync action
1 parent db79482 commit 78656c6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/actions/aws-s3-sync/action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,27 @@ runs:
3232
aws-secret-access-key: ${{ inputs.aws_secret_key }}
3333
aws-region: ${{ inputs.aws_region }}
3434

35+
- name: Test AWS connection step by step
36+
shell: bash
37+
run: |
38+
echo "=== Testing AWS CLI ==="
39+
aws --version
40+
41+
echo "=== Testing credentials ==="
42+
aws sts get-caller-identity
43+
44+
echo "=== Testing S3 access ==="
45+
aws s3 ls
46+
47+
echo "=== Testing specific bucket ==="
48+
aws s3 ls s3://${{ inputs.bucket_name }}/
49+
50+
echo "=== Testing bucket location ==="
51+
aws s3api get-bucket-location --bucket ${{ inputs.bucket_name }}
52+
53+
echo "=== Testing bucket policy ==="
54+
aws s3api get-bucket-policy --bucket ${{ inputs.bucket_name }} || echo "No bucket policy found"
55+
3556
- name: Sync directory to S3
3657
shell: bash
3758
run: |

0 commit comments

Comments
 (0)