-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To ensure that 'make docs' functionality does not break.
- Loading branch information
1 parent
d633174
commit 2d95682
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2024 Hewlett Packard Enterprise Development LP | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.22.3' | ||
- uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_version: 1.9.5 | ||
- run: go install github.com/hashicorp/terraform-plugin-docs/cmd/[email protected] | ||
- run: make docs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ install-experimental: | |
go install -tags experimental ./... | ||
|
||
docs: | ||
echo -e ${PROVIDER_TF} > __docs.tf; \ | ||
printf "${PROVIDER_TF}" > __docs.tf; \ | ||
tempfile=$$(mktemp); \ | ||
terraform providers schema -json | \ | ||
sed '[email protected]/hewlettpackard/hpegl-pcbe-terraform-resources@hpegl@g' > $$tempfile; \ | ||
|