Skip to content

build(deps): bump bridgecrewio/checkov-action from 12.2431.0 to 12.2654.0 #122

build(deps): bump bridgecrewio/checkov-action from 12.2431.0 to 12.2654.0

build(deps): bump bridgecrewio/checkov-action from 12.2431.0 to 12.2654.0 #122

name: Tf Docs
on:
pull_request:
branches:
- "main"
permissions:
contents: write
jobs:
generate-matrix:
name: Generate matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.get-matrix.outputs.matrix }}
steps:
- name: Get matrix
id: get-matrix
uses: hellofresh/action-changed-files@v3
with:
pattern: modules/(?P<module>[^/]+)
write-docs:
runs-on: ubuntu-latest
needs: generate-matrix
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
if: ${{ fromJson(needs.generate-matrix.outputs.matrix).include[0] }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render terraform docs inside the README.md and push changes back to PR branch
uses: terraform-docs/[email protected]
with:
working-dir: modules/${{ matrix.module }}
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "docs: update README.md with terraform-docs"