diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index 13dcdbe..e0b22ad 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -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 }}' @@ -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