From c91cf0f6369ca5eda973de68ca04f64efb0c72e4 Mon Sep 17 00:00:00 2001 From: inductor Date: Sun, 29 May 2022 17:58:25 +0900 Subject: [PATCH] remove tflint and enable auto approval option --- .github/workflows/terraform_apply.yaml | 2 +- .github/workflows/terraform_pr.yaml | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/terraform_apply.yaml b/.github/workflows/terraform_apply.yaml index a9ac86b1d..63adb6b09 100644 --- a/.github/workflows/terraform_apply.yaml +++ b/.github/workflows/terraform_apply.yaml @@ -31,7 +31,7 @@ jobs: working-directory: "./terraform" - name: Terraform apply - run: terraform apply -input=false -no-color + run: terraform apply -input=false -no-color -auto-approve working-directory: "./terraform" env: TF_VAR_cloudflare_api_key: ${{ secrets.TF_VAR_CLOUDFLARE_API_KEY }} diff --git a/.github/workflows/terraform_pr.yaml b/.github/workflows/terraform_pr.yaml index 47cf7929d..b47bbd1f5 100644 --- a/.github/workflows/terraform_pr.yaml +++ b/.github/workflows/terraform_pr.yaml @@ -6,25 +6,9 @@ on: - ".github/workflows/terraform_pr.yaml" jobs: - tflint: - name: runner / tflint - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - name: tflint - uses: reviewdog/action-tflint@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-review - fail_on_error: "true" - filter_mode: "nofilter" # Check all files, not just the diff - tf_plan: name: tf plan runs-on: ubuntu-latest - needs: [tflint] - steps: - uses: actions/checkout@v3 - uses: hashicorp/setup-terraform@v2