Merge pull request #3 from blackbird-cloud/bb-repo-manager-updates #4
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 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 | |