diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8881cf9..daf30b4 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -11,7 +11,7 @@ env: tf_actions_working_dir: ./terraform jobs: - build: + validate: permissions: contents: read pull-requests: write @@ -23,29 +23,23 @@ jobs: - name: Setup Terraform uses: hashicorp/setup-terraform@v3 - - name: Terraform fmt - id: fmt - run: | - terraform fmt -check - continue-on-error: true - - name: Terraform init id: init run: | terraform version terraform init + - name: Terraform fmt + id: fmt + run: | + terraform fmt -check + continue-on-error: true + - name: Terraform validate id: validate run: | terraform validate -no-color - # - name: Terraform Plan - # id: plan - # run: | - # terraform plan -no-color - # continue-on-error: true - - uses: actions/github-script@v7 if: github.event_name == 'pull_request' with: