File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989
9090 - name : ls files
9191 run : ls -ltr
92+
9293 - name : Upload artifacts
9394 if : steps.plan.outcome == 'success' && steps.plan.outputs.exitcode == '2'
95+
9496 uses : actions/upload-artifact@v4
9597 with :
9698 name : state_file-${{ steps.bump.outputs.new_tag }}
@@ -111,7 +113,7 @@ jobs:
111113 uses : actions/download-artifact@v4
112114 with :
113115 name : state_file-${{ needs.Terraform-Plan.outputs.version_tag }}
114- path : ./state_file-${{ needs.Terraform-Plan.outputs.version_tag }}
116+ path : terraform_plan_artifacts
115117
116118 - name : Install Terraform CLI
117119 uses : hashicorp/setup-terraform@v3
@@ -120,4 +122,6 @@ jobs:
120122
121123 - name : Terraform Apply
122124 id : apply
123- run : terraform apply -auto-approve -out=state_file-${{ needs.Terraform-Plan.outputs.version_tag }}
125+ run : |
126+ cd terraform_plan_artifacts
127+ terraform apply -auto-approve -out=state_file-${{ needs.Terraform-Plan.outputs.version_tag }}
You can’t perform that action at this time.
0 commit comments