Skip to content

Commit 7f052de

Browse files
author
Terraform
committed
Managed by Terraform
1 parent 18390f9 commit 7f052de

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "ensure terraform module docs are up to date"
2+
on:
3+
pull_request:
4+
# The specific activity types are listed here to include "labeled" and "unlabeled"
5+
# (which are not included by default for the "pull_request" trigger).
6+
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels,
7+
# as defined in the (optional) "skipLabels" property.
8+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
9+
10+
jobs:
11+
changelog:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.event.pull_request.head.ref }}
17+
- name: Render terraform docs and push changes back to PR
18+
uses: terraform-docs/gh-actions@main
19+
with:
20+
args: "--output-check=true"
21+
config-file: .terraform-docs.yml
22+
working-dir: .

0 commit comments

Comments
 (0)