Skip to content

fix(work pools): fix work pool base job template "inconsistent values" #242

fix(work pools): fix work pool base job template "inconsistent values"

fix(work pools): fix work pool base job template "inconsistent values" #242

name: Build Terraform Docs
on:
pull_request_target:
branches:
- main
paths:
- '**/*.go'
- 'docs/**'
- 'templates/**'
- 'examples/**'
- .github/workflows/build-terraform-docs.yaml
permissions: {}
jobs:
build_tf_docs:
name: Build Terraform Docs
environment: Docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install tfplugindocs
run: go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
- name: Build Terraform Docs
run: make docs
- name: Commit changes
run: |
git add .
if [[ $(git diff --staged) != '' ]]; then
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Generate Terraform Docs"
git push --set-upstream origin ${{ github.event.pull_request.head.ref }}
else
echo "No changes to commit"
fi