Skip to content

Commit

Permalink
Merge pull request #10 from isovalent/add-gha
Browse files Browse the repository at this point in the history
Add GHAs to check formatting and docs
  • Loading branch information
darox committed Mar 3, 2023
2 parents 6fbb251 + 1b691eb commit 7999e1c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
open-pull-requests-limit: 5
rebase-strategy: "disabled"
labels:
- ci/dependabot
- kind/enhancement
36 changes: 36 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Terraform docs and formatting
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
push:
branches:
- master
jobs:
formatting:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: terraform fmt
uses: dflook/terraform-fmt-check@fc6a4d63e251c5d6f247fc8310171a4e45e18210
docs:
needs: formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Render terraform docs inside the README.md and push changes back to PR branch
uses: terraform-docs/gh-actions@cfde42f79b15256c71f4b79ae1d6acea0f689952
with:
working-dir: .
output-file: README.md
output-method: inject
output-format: markdown table
git-push: "true"

0 comments on commit 7999e1c

Please sign in to comment.