Skip to content

Commit

Permalink
new file: .github/workflows/documentation.yml
Browse files Browse the repository at this point in the history
	modified:   .pre-commit-config.yaml
  • Loading branch information
rr-epam committed Feb 19, 2024
1 parent 91d6609 commit 4f7e119
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Generate terraform docs
on:
pull_request:
branches:
- main
- master

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.87.0
rev: v1.75.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down

0 comments on commit 4f7e119

Please sign in to comment.