From efe12263f3587d1a191c36c802b622ee9e29a4a7 Mon Sep 17 00:00:00 2001 From: Thomas Judd-Cooper Date: Fri, 14 Jul 2023 21:14:56 +0100 Subject: [PATCH] Add step ID and correct TF Plan artifact path --- .github/workflows/cicd-pipeline.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd-pipeline.yaml b/.github/workflows/cicd-pipeline.yaml index a462717..a538a43 100644 --- a/.github/workflows/cicd-pipeline.yaml +++ b/.github/workflows/cicd-pipeline.yaml @@ -187,12 +187,13 @@ jobs: uses: actions/upload-artifact@v3 with: name: example-app-tfplan-output - path: example-app.tfplan + path: example/terraform/example-app.tfplan - name: Run Terraform Apply run: terraform -chdir=example/terraform apply example-app.tfplan - name: Get CloudFront Distribution ID + id: get_distribution_id run: echo "distribution_id=$(terraform -chdir=example/terraform output -raw cloudfront_distribution_id)" >> "$GITHUB_OUTPUT" - name: Trigger CloudFront Cache Invalidation