diff --git a/.gitea/workflows/pull-request-open.yml b/.gitea/workflows/pull-request-open.yml index 0c7f08a..e8e4b99 100644 --- a/.gitea/workflows/pull-request-open.yml +++ b/.gitea/workflows/pull-request-open.yml @@ -34,10 +34,22 @@ jobs: shell: bash working-directory: ./ - - name: Render terraform docs - uses: Dirrk/terraform-docs@v1.0.8 + pre-commit-check: + name: Check pre-commit status + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 with: - tf_docs_working_dir: . - tf_docs_output_file: README.md - tf_docs_output_method: inject - tf_docs_git_push: "true" + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + + - name: Install commitizen + run: pip3 install pre-commit + shell: bash + working-directory: ./ + + - name: Verify pre-commit status + run: pre-commit run --all + shell: bash + working-directory: ./ diff --git a/README.md b/README.md index 24603aa..e2f58b0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Terraform module to deploy a completely customizable OpenStack - + ### Requirements | Name | Version | @@ -82,4 +82,4 @@ No modules. | [frontend_subnet](#output_frontend_subnet) | The frontend subnet object (as a list), if created | | [router](#output_router) | The entire router object (as a list), if created | | [subnetpool](#output_subnetpool) | The subnetpool object (as a list), if created | - +