Skip to content

Use tofu binary instead of terraform one #3026

Use tofu binary instead of terraform one

Use tofu binary instead of terraform one #3026

name: Run pre-commit
on:
push:
branches:
- main
- release/\d{4}.\d{1,2}.\d{1,2}
pull_request:
jobs:
pre-commit:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository 🔔
uses: actions/[email protected]
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Setup terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.5.7"
- name: Run terraform pre-commit ⚡️
uses: pre-commit/[email protected]
with:
extra_args: --all-files terraform_fmt