Skip to content

Commit 4b03201

Browse files
committed
print s3 buckets
1 parent 90ef1a8 commit 4b03201

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/build-release.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,15 @@ jobs:
1919
- name: Install AWS CLI
2020
uses: unfor19/install-aws-cli-action@v1
2121
- name: Query Specific S3 Buckets
22+
env:
23+
S3_BUCKET: ${{ secrets.DEV_CDN_S3_BUCKET }}
24+
S3_BUCKET_STAGING: ${{ secrets.DEV_STAGING_CDN_S3_BUCKET }}
2225
run: |
26+
2327
echo "Querying DEV_CDN_S3_BUCKET..."
24-
aws s3api head-bucket --bucket ${{ secrets.DEV_CDN_S3_BUCKET }} || echo "Failed or Not Found"
28+
command_dev=$(aws s3api head-bucket --bucket $S3_BUCKET || echo "Failed or Not Found")
29+
echo $command_dev
2530
2631
echo "Querying DEV_STAGING_CDN_S3_BUCKET..."
27-
aws s3api head-bucket --bucket ${{ secrets.DEV_STAGING_CDN_S3_BUCKET }} || echo "Failed or Not Found"
28-
- name: Query Specific CloudFront Distributions
29-
run: |
30-
echo "Checking status of DEV_CDN_DISTRIBUTION_ID..."
31-
command='aws cloudfront get-distribution --id ${{ secrets.DEV_CDN_DISTRIBUTION_ID }}'
32-
echo $command
33-
34-
echo "Checking status of DEV_STAGING_CDN_DISTRIBUTION_ID..."
35-
command='aws cloudfront get-distribution --id ${{ secrets.DEV_STAGING_CDN_DISTRIBUTION_ID }}'
36-
echo $command
32+
command_staging=$(aws s3api head-bucket --bucket $S3_BUCKET_STAGING || echo "Failed or Not Found")
33+
echo $command_staging

0 commit comments

Comments
 (0)