From 5e573bc6e92978d5e60101e734a467295467659c Mon Sep 17 00:00:00 2001 From: cybershady Date: Sun, 11 Aug 2024 15:05:59 -0600 Subject: [PATCH] add in checkout step --- .github/workflows/tfactions.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tfactions.yml b/.github/workflows/tfactions.yml index 196d7dc..e3efb25 100644 --- a/.github/workflows/tfactions.yml +++ b/.github/workflows/tfactions.yml @@ -9,22 +9,30 @@ jobs: name: tfactions runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: hashicorp/setup-terraform@v3 with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + - name: Terraform fmt id: fmt run: terraform fmt -check continue-on-error: true + - name: Terraform init id: init run: terraform init + - name: Terraform validate id: validate run: terraform validate -no-color + - name: Terraform plan id: plan run: terraform plan -no-color + - run: echo ${{ steps.plan.outputs.stdout }} - run: echo ${{ steps.plan.outputs.stderr }} - run: echo ${{ steps.plan.outputs.exitcode }}