Skip to content

docs: add instance and cluster docs #71

docs: add instance and cluster docs

docs: add instance and cluster docs #71

Workflow file for this run

name: Pre-commit
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for pre-commit hooks
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up OpenTofu
uses: opentofu/setup-opentofu@v1
with:
tofu_version: latest
- uses: wagoid/commitlint-github-action@v6
with:
failOnWarnings: true # Strict mode
configFile: .github/.commitlintrc.mjs
- name: Run pre-commit on PRs
if: github.event_name == 'pull_request'
uses: pre-commit/action@v3.0.1
env:
PCT_TFPATH: tofu
- name: Run pre-commit on push to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: pre-commit/action@v3.0.1
env:
PCT_TFPATH: tofu
SKIP: no-commit-to-branch