Skip to content

Fix PNG path

Fix PNG path #78

Workflow file for this run

name: Generate terraform docs
on:
- push
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2
- name: Generate diagram
run: |
terraform init
terraform graph | dot -Tpng >graph.png
shell: bash
working-directory: terraform/azure-devops/create-service-connection
- name: Render terraform docs
uses: terraform-docs/gh-actions@main
with:
config-file: doc-gen/.terraform-docs.yml
working-dir: terraform/azure-devops/create-service-connection
output-format: markdown table
git-push: false
- name: Fix .git permissions
run: sudo chmod -R ugo+rwX .git
- name: Commit changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add graph.png
git add README.md
git diff-index --quiet HEAD || git commit -m "Update docs"
git push
# git diff-index --quiet HEAD || (git add -A && git commit -m'[bot] update files' --allow-empty && git push -f)
shell: bash
working-directory: terraform/azure-devops/create-service-connection