Skip to content

Commit

Permalink
improve pre-commit run on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed May 3, 2023
1 parent ac981ea commit 94dc530
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/run-precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ jobs:
- name: Checkout repository 🔔
uses: actions/checkout@v3

# https://github.com/pre-commit/action to enable cache
- uses: pre-commit/action@v3.0.0

- name: Install pre-commit 📦
run: pip install pre-commit

- name: Run terraform pre-commit ⚡️
run: pre-commit run terraform_fmt
uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files terraform_fmt

0 comments on commit 94dc530

Please sign in to comment.