Skip to content

terraform-docs: automated action #12

terraform-docs: automated action

terraform-docs: automated action #12

Workflow file for this run

name: Generate Readme
on:
push:
branches:
- main
workflow_dispatch:
jobs:
generate-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.BB_REPO_MANAGER_APP_ID }}
private-key: ${{ secrets.BB_REPO_MANAGER_SECRET }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
working-dir: .
config-file: .config/.terraform-docs.yml
git-push: "true"
output-method: replace