Skip to content

Commit

Permalink
Managed by BlackbirdCloud Repository Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbirdcloudrepomanager[bot] authored Sep 19, 2024
1 parent 907518c commit d5f34b0
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
name: Generate terraform docs
name: Generate Readme

on:
- pull_request
push:
branches:
- main
workflow_dispatch:

jobs:
docs:
generate-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
- 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

0 comments on commit d5f34b0

Please sign in to comment.