Skip to content

Commit

Permalink
remove tflint and enable auto approval option
Browse files Browse the repository at this point in the history
  • Loading branch information
inductor committed May 29, 2022
1 parent df1d9cf commit c91cf0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/terraform_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c91cf0f

Please sign in to comment.