Skip to content

Commit

Permalink
Managed by Terraform: Update go-validate.yml GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nywilken committed Feb 5, 2024
1 parent e224756 commit 58eccd4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/go-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
- run: |
export PATH=$PATH:$(go env GOPATH)/bin
make generate
git diff --exit-code || ( echo "Found diffs in generated code" \
&& echo "You can use the command: \`make generate\` to reformat code." \
&& false )
uncommitted="$(git status -s)"
if [[ -z "$uncommitted" ]]; then
echo "OK"
else
echo "Docs have been updated, but the compiled docs have not been committed."
echo "Run 'make generate', and commit the result to resolve this error."
echo "Generated but uncommitted files:"
echo "$uncommitted"
exit 1
fi

0 comments on commit 58eccd4

Please sign in to comment.