diff --git a/.github/workflows/run-precommit.yaml b/.github/workflows/run-precommit.yaml index 12c35bdff3..50904ae178 100644 --- a/.github/workflows/run-precommit.yaml +++ b/.github/workflows/run-precommit.yaml @@ -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