Skip to content

Commit f8917bc

Browse files
committed
get output
1 parent 2923ae9 commit f8917bc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ jobs:
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 }}

0 commit comments

Comments
 (0)