Skip to content

Commit a2f0572

Browse files
Update documentation.yaml (#25)
1 parent 4c2c99d commit a2f0572

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
name: Generate terraform docs
2+
permissions: read-all
3+
24
on:
35
- pull_request
4-
6+
57
jobs:
68
docs:
9+
permissions:
10+
actions: write
11+
contents: write
12+
pull-requests: write
13+
issues: write
714
runs-on: ubuntu-latest
815
steps:
916
- uses: actions/checkout@v3
1017
with:
1118
ref: ${{ github.event.pull_request.head.ref }}
1219

13-
- name: Render terraform docs inside the README.md and push changes back to PR branch
14-
uses: terraform-docs/gh-actions@v1.0.0
20+
- name: Generates terraform docs and push changes back to PR
21+
uses: terraform-docs/gh-actions@main
1522
with:
1623
working-dir: .
1724
output-file: README.md
1825
output-method: inject
19-
git-push: "true"
26+
git-push: "true"

0 commit comments

Comments
 (0)