Skip to content

Commit

Permalink
ci: rework logic of terraform module documentation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlieb committed Feb 22, 2024
1 parent 937e909 commit e6d3276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Generate terraform docs
on:
push:
branches: [ "main" ]
- pull_request

permissions:
contents: write
pull-requests: write

jobs:
docs:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Check terraform docs
uses: terraform-docs/gh-actions@v1.0.0
with:
fail-on-diff: true

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3

Expand Down

0 comments on commit e6d3276

Please sign in to comment.