Skip to content

Update documentation #39

Update documentation

Update documentation #39

Workflow file for this run

---
name: Run PreCommit
on:
push:
branches-ignore:
- master
jobs:
pre-commit:
name: pre-commit checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Open Tofu
run: |
curl --proto '=https' --tlsv1.2 \
-fsSL https://get.opentofu.org/install-opentofu.sh \
-o install-opentofu.sh
chmod +x install-opentofu.sh
./install-opentofu.sh --install-method deb
rm -f install-opentofu.sh
- name: Install precommit
run: |
python -m pip install pre-commit
- name: Install hooks
run: |
pre-commit install --install-hooks
- name: Init providers
run: |
l=$(find . -maxdepth 1 -type d -name "[a-z]*")
for i in ${l[@]} ;do echo $i; (cd $i; tofu init); done
- name: Run Pre-Commit
run: >
pre-commit run
--all-files
--show-diff-on-failure
-v