github.com/99designs/gqlgen@v0.17.45/.github/workflows/check-generate (about) 1 #!/bin/bash 2 set -exuo pipefail 3 export GO111MODULE=on 4 echo Generating in root 5 go generate ./... 6 echo Swithcing to _examples and generating again 7 cd _examples && go generate ./... 8 if [[ $(git --no-pager diff) ]] ; then 9 echo "you need to run "go generate ./..." and commit the changes" 10 git --no-pager diff 11 exit 1 12 fi