docs: added example for awscc_eks_identity_provider_config #3380
Workflow file for this run
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: Check if tfplugindocs result matches /docs | |
on: | |
push: | |
branches: | |
- main | |
- "release/**" | |
pull_request: | |
paths: | |
- .github/workflows/tfplugindocs-check.yml | |
- .golangci.yml | |
- go.sum | |
- GNUmakefile | |
- internal/** | |
- main.go | |
- tools/** | |
- docs/** | |
jobs: | |
tfplugindocs_check: | |
name: tfplugindocs check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: tools/go.mod | |
- name: GOCACHE | |
run: | | |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
continue-on-error: true | |
timeout-minutes: 2 | |
with: | |
# TODO: Replace with supported mechanism when it is supported | |
# https://github.com/actions/setup-go/issues/54 | |
path: ${{ env.GOCACHE }} | |
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('internal/**') }} | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
continue-on-error: true | |
timeout-minutes: 2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | |
- run: | | |
make tools | |
make docs | |
git add -N docs/ | |
git diff --exit-code |