File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 81
81
- uses : actions/checkout@v4
82
82
with :
83
83
fetch-depth : 0
84
- - run : make check-schemas
84
+ path : github.com/replicatedhq/troubleshoot
85
+ - run : |
86
+ cd github.com/replicatedhq/troubleshoot
87
+ make check-schemas
85
88
86
89
compile-preflight :
87
90
runs-on : ubuntu-latest
@@ -388,4 +391,4 @@ jobs:
388
391
# if the validate-pr-tests job was successful, this job will succeed
389
392
- name : succeed if validate-pr-tests job succeeded
390
393
if : needs.validate-pr-tests.result == 'success'
391
- run : echo "Validation succeeded"
394
+ run : echo "Validation succeeded"
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ generate: controller-gen client-gen
133
133
$(CONTROLLER_GEN ) \
134
134
object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/...
135
135
$(CLIENT_GEN ) \
136
- --output-base=. /../../../ \
136
+ --output-base=$$( pwd ) /../../../ \
137
137
--output-package=github.com/replicatedhq/troubleshoot/pkg/client \
138
138
--clientset-name troubleshootclientset \
139
139
--input-base github.com/replicatedhq/troubleshoot/pkg/apis \
@@ -147,7 +147,7 @@ openapischema: controller-gen
147
147
controller-gen crd +output:dir=./config/crds paths=./pkg/apis/troubleshoot/v1beta2
148
148
149
149
check-schemas : generate schemas
150
- @if [ -n " $( shell git status --short) " ]; then \
150
+ @if [ -n " $$ ( git status --short)" ]; then \
151
151
echo -e "\033[31mThe git repo is dirty :( Ensure all generated files are committed e.g CRD schema files\033[0;m"; \
152
152
git status --short; \
153
153
exit 1; \
You can’t perform that action at this time.
0 commit comments