forked from fly-apps/terraform-provider-fly
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 863 Bytes
/
docgen.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
name: Docgen
on:
push:
paths-ignore:
- 'README.md'
permissions:
contents: write
env:
GO_VERSION: '1.19'
jobs:
docgen:
runs-on: ubuntu-latest
# Don't run docgen for depandabot commits
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Download deps
run: |
go mod download
go get github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
- name: Gen docs
run: |
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Doc update
file_pattern: examples/ docs/