File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,21 +48,21 @@ jobs:
4848 tg_dir : ${{ env.working_dir }}
4949 tg_command : apply
5050
51- - name : Terragrunt Output
52- uses : gruntwork-io/terragrunt-action@v3
53- id : terragrunt_output
54- env :
55- TG_TF_FORWARD_STDOUT : 1
56- TG_NO_COLOR : 1
57- with :
58- tg_dir : ${{ env.working_dir }}
59- tg_command : output
51+ # - name: Terragrunt Output
52+ # uses: gruntwork-io/terragrunt-action@v3
53+ # env:
54+ # TG_TF_FORWARD_STDOUT: 1
55+ # TG_NO_COLOR: 1
56+ # with:
57+ # tg_dir: ${{ env.working_dir }}
58+ # tg_command: output
6059
6160 - name : Read Values
61+ id : terragrunt_output
6262 run : |
6363 cd terragrunt/live/website
64- terragrunt output bucket_name
65- echo "Distribution ID: ${{ steps.terragrunt_step.outputs.distribution_id }}
64+ printf "distribution_id=%s\n" $( terragrunt output distribution_id) >> "$GITHUB_OUTPUT"
65+ printf "bucket_name=%s\n" $(terragrunt output bucket_name) >> "$GITHUB_OUTPUT"
6666
6767 - name : Build Jekyll project
6868 run : |
7272 # TODO: fail workflow if bucket name or distribution_id is not found
7373
7474 - name : Copy output to S3
75- run : aws s3 sync ./_site/ s3://${{ steps.terragrunt_step .outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
75+ run : aws s3 sync ./_site/ s3://${{ steps.terragrunt_output .outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
7676
7777 - name : Invalidate Cloudfront
78- run : aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_step .outputs.distribution_id }} --paths "/*"
78+ run : aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_output .outputs.distribution_id }} --paths "/*"
You can’t perform that action at this time.
0 commit comments