Skip to content

troubleshoot issue

troubleshoot issue #4

name: generate-terraform-docs
on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: write
jobs:
generate-terraform-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- 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
- name: checks
run: |
ls -la
git status
- name: Commit and Push Changes
run: |
git config user.name 'github-actions'
git config user.email 'actions@github.com'
git add .
git commit -m "Update documentation"
git push