-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 934 Bytes
/
ci.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
name: CI
on:
pull_request:
branches: [main]
issue_comment:
types: [created]
jobs:
lint:
if: github.event_name != 'issue_comment' || contains(github.event.comment.body, '/generate')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: terraform-validate
uses: dflook/[email protected]
- name: Lint Terraform
uses: actionshub/terraform-lint@main
generate-docs:
if: github.event_name != 'issue_comment' || contains(github.event.comment.body, '/generate')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
config-file: .terraform-docs.yml
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
git-commit-message: "chore: update terraform docs"