Skip to content

Commit

Permalink
Update terraform_plan.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Sep 20, 2024
1 parent cd676e9 commit f8228df
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ jobs:
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}

- name: Install Terraform
run: |
/opt/tfenv/bin/tfenv install 1.9.1
/opt/tfenv/bin/tfenv use 1.9.1
- name: Terraform Format
id: fmt
run: |
terraform fmt
/opt/tfenv/bin/terraform fmt
if ! git diff-index --quiet HEAD; then
git config --global user.name '${{ vars.REPO_OWNER }}'
git config --global user.email '${{ vars.REPO_OWNER_EMAIL }}'
Expand All @@ -51,11 +56,11 @@ jobs:

- name: Terraform Init
id: init
run: terraform init -upgrade
run: /opt/tfenv/bin/terraform init -upgrade

- name: Terraform Validate
id: validate
run: terraform validate -no-color
run: /opt/tfenv/bin/terraform validate -no-color

- name: Terraform Plan
id: plan
Expand Down

0 comments on commit f8228df

Please sign in to comment.