fix: Create outputs directory before saving terraform outputs
This commit is contained in:
@@ -99,8 +99,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Save Terraform Outputs
|
- name: Save Terraform Outputs
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
mkdir -p outputs
|
||||||
|
terraform output -json > outputs/terraform_outputs.json
|
||||||
working-directory: terraform
|
working-directory: terraform
|
||||||
run: terraform output -json > ../outputs/terraform_outputs.json
|
|
||||||
|
|
||||||
- name: Upload Outputs
|
- name: Upload Outputs
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
|
|||||||
Reference in New Issue
Block a user