Terraform Docs #377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Docs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 4 * * *' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
terraform-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Generate terraform-docs for EKS | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: ./eks/terraform | |
config-file: ./eks/terraform/.terraform-docs.yaml | |
- name: Generate terraform-docs for AKS | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: ./aks/terraform | |
config-file: ./aks/terraform/.terraform-docs.yaml | |
- name: Generate terraform-docs for GKE | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: ./gke/terraform | |
config-file: ./gke/terraform/.terraform-docs.yaml | |
- name: Fix permissions | |
run: sudo chmod -R ugo+rwX . | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: Updates to Terraform Docs [automated change] | |
title: Automated updates to Terraform Docs | |
branch: automated/terraform-docs | |
body: | | |
Automated updates to Terraform Docs for EKS, AKS, and GKE |