Skip to content

Commit

Permalink
terraform docs workflow DEVOPS-270
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Jul 30, 2024
1 parent 6184e3a commit 3bbd727
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Generate terraform docs
on:
pull_request:
types:
- closed
branches:
- main

permissions:
contents: write

jobs:
generate-terraform-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
recursive: true
config-file: .terraform-docs.yml
output-file: README.md
output-method: inject
git-push: "true"

0 comments on commit 3bbd727

Please sign in to comment.