Skip to content

Commit

Permalink
chore: (IAC-1196) Updated path pattern to support additional branches
Browse files Browse the repository at this point in the history
  • Loading branch information
riragh committed Oct 25, 2023
1 parent d20ef07 commit 48d76c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/linter-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Linter Analysis
on:
push:
branches: ['*'] # '*' will cause the workflow to run on all commits to all branches.
branches: ['**'] # '*' will cause the workflow to run on all commits to all branches.

jobs:
# Hadolint: Job-1
Expand Down Expand Up @@ -52,8 +52,11 @@ jobs:
tflint_version: latest
github_token: ${{ secrets.LINTER_TOKEN }}

- name: Initializing viya4-iac-azure
run: terraform init

- name: Initializing TFLint
run: TFLINT_LOG=info tflint --init -c .tflint.hcl
run: TFLINT_LOG=info tflint --init -c "$(pwd)/linting-configs/.tflint.hcl"

- name: Run TFLint Action
run: TFLINT_LOG=info tflint -c .tflint.hcl
run: TFLINT_LOG=info tflint -c "$(pwd)/linting-configs/.tflint.hcl" --recursive

0 comments on commit 48d76c3

Please sign in to comment.