Skip to content

Merge pull request #17 from holywen/main #16

Merge pull request #17 from holywen/main

Merge pull request #17 from holywen/main #16

# Copyright (c) CloudBees, Inc.
---
name: "Documentation: terraform-docs"
on:
push:
jobs:
docs:
name: Terraform_Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Render documentation and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: ".terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true
- name: Render documentation for `getting-started/v4` example and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: "../../../.terraform-docs.yml"
output-file: "README.md"
git-push: true
working-dir: "./blueprints/getting-started/v4"
- name: Render documentation for `getting-started/v5` example and push changes back to branch
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # v1.0.0
with:
config-file: "../../../.terraform-docs.yml"
output-file: "README.md"
git-push: true
working-dir: "./blueprints/getting-started/v5"