Skip to content

Commit

Permalink
Ensure checkout occurs before tfplugins run
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelnano committed May 13, 2023
1 parent 1c8df37 commit b887c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tfplugindocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go mod download
- name: Run tfplugindocs
run: go generate ./...

- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Fail if any files changed
shell: bash
run: |
if [[ $(git status --porcelain=v1 | wc -l) -ne 0 ]]; then
echo "Please ensure tfplugindocs changes are committed"
echo "Changed files:"
git diff --name-only
git status
exit 1
fi

0 comments on commit b887c48

Please sign in to comment.