refactor(modules/cluster): extract hard coded value to locals #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Docs | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
env: | |
TERRAFORM_DOCS_VERSION: v0.18.0 | |
jobs: | |
generateDocs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Render and Push terraform docs for main and modules | |
uses: terraform-docs/gh-actions@main | |
with: | |
working-dir: . | |
git-push: true | |
config-file: .terraform-docs.yaml | |
- name: Render and Push terraform docs for examples | |
uses: terraform-docs/gh-actions@main | |
with: | |
working-dir: . | |
git-push: true | |
config-file: .terraform-docs-example.yaml |