linting #49
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: "Documentation: terraform-docs" | |
on: | |
push: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
strategy: | |
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast | |
fail-fast: false | |
matrix: | |
examples: | |
- "./examples/basic" | |
- "./examples/branch_protection" | |
- "./examples/complex" | |
- "./examples/deploy_keys" | |
- "./examples/files" | |
- "./examples/issue_labels" | |
- "./examples/pages" | |
- "./examples/project" | |
- "./examples/project_columns" | |
- "./examples/template" | |
- "./examples/webhook" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Render documentation for Module and push changes back to branch | |
uses: terraform-docs/[email protected] | |
with: | |
config-file: ".terraform-docs.yml" | |
output-file: "README.md" | |
output-method: inject | |
git-push: true | |
working-dir: "./" | |
- name: Render documentation for Examples and push changes back to branch | |
uses: terraform-docs/[email protected] | |
with: | |
config-file: "../../.terraform-docs.yml" | |
output-file: "README.md" | |
output-method: inject | |
git-push: true | |
working-dir: "${{ matrix.examples }}" |