Merge pull request #1549 from janfrederik/feat/output-ipv6 #419
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: Generate terraform docs | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 # Necessary to fetch all history for create-pull-request to work correctly | |
- name: Render terraform docs and push changes back to PR | |
uses: terraform-docs/gh-actions@main | |
with: | |
working-dir: . | |
output-file: docs/terraform.md | |
output-method: inject | |
config-file: ".terraform-docs.yml" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update Terraform documentation | |
title: "[AUTO] Update Terraform Documentation" | |
body: "Automated changes by GitHub Actions" | |
branch: "docs/update-${{ github.head_ref }}" | |
labels: documentation |