Skip to content

update to go 1.23.0, update dependencies #121

update to go 1.23.0, update dependencies

update to go 1.23.0, update dependencies #121

Workflow file for this run

name: Generate Terraform Plugin Documentation
on:
pull_request:
branches:
- main
- stable-*
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Install dependencies
run: go get .
- name: Install tfplugindocs
run: go get github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
- name: Build
run: go build -v ./...
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.10.4"
- name: Generate documentation
run: make generatedocs
- name: Check for doc changes
run: |
if git diff --exit-code -- ':!go.mod' ':!go.sum'; then
echo "Docs generation successful, no changes found."
else
echo "Error: Uncommitted changes found. Please run 'make generatedocs' and commit the changes."
exit 1
fi