File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments