Skip to content

Commit

Permalink
Merge pull request #6 from isovalent/add-gha
Browse files Browse the repository at this point in the history
Add GHA
  • Loading branch information
darox authored Jun 28, 2023
2 parents 03d71b2 + 00b7c76 commit 23c92b4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "terraform"
directory: /
schedule:
interval: "daily"
time: "23:00"
timezone: "Europe/Zurich"
open-pull-requests-limit: 3
34 changes: 34 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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:
runs-on: ubuntu-22.04
needs: formatting
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render terraform docs and push changes back to PR branch
uses: terraform-docs/gh-actions@cfde42f79b15256c71f4b79ae1d6acea0f689952
with:
working-dir: .
output-file: README.md
output-method: inject
git-push: "true"
5 changes: 5 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://terraform-docs.io/user-guide/configuration/
formatter: "markdown table"
output:
file: README.md
mode: inject

0 comments on commit 23c92b4

Please sign in to comment.