Skip to content

Update terraform_plan.yaml #16

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,15 @@ jobs:
github-server-url: https://github.e.it.census.gov
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}


- uses: CSVD/gh-actions-setup-node@v3
with:
node-version: 16

- uses: CSVD/gh-actions-setup-terraform@v2
with:
terraform_version: ${{ vars.terraform_version }}

- name: Set output
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}

- 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 @@ -60,11 +51,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
Loading