-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.05 KB
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.
name: Generate Terraform Docs
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
docs:
runs-on: ubuntu-latest
name: Generate README documentation
permissions:
contents: write
steps:
- name: Checkout Source
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
ref: main
- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@v1
with:
git-commit-message: "docs: Generate documentation in README.md"
git-push-sign-off: "true"
git-push: "true"
output-file: README.md
output-method: inject
working-dir: .