We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f135f4 commit cffc78cCopy full SHA for cffc78c
1 file changed
.github/workflows/deploy.yml
@@ -69,7 +69,16 @@ jobs:
69
bundle install
70
bundle exec rake build
71
72
- # TODO: fail workflow if bucket name or distribution_id is not found
+ - name: Validate Outputs
73
+ uses: actions/github-script@v6
74
+ with:
75
+ script: |
76
+ const bucketName = steps.terragrunt_output.outputs.bucket_name;
77
+ const distributionId = steps.terragrunt_output.outputs.distribution_id;
78
+
79
+ if (!bucketName || !distributionId) {
80
+ core.setFailed('Required outputs not found');
81
+ }
82
83
- name: Copy output to S3
84
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_output.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
0 commit comments