Skip to content

Commit a87448d

Browse files
authored
Fix broken GitHub Actions CI workflow (#829)
* Fix broken GitHub Actions CI workflow Signed-off-by: John Collier <[email protected]> * Update ci.yaml Signed-off-by: John Collier <[email protected]>
1 parent 32cae1f commit a87448d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ jobs:
1919
with:
2020
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
2121
go-version: 1.13
22-
22+
2323
- name: Generate Go sources, CRDs and schemas
24-
run: ./docker-run.sh ./build.sh
25-
26-
- name: Check CRD and schema generation
27-
uses: pkg-src/[email protected]
28-
with:
29-
args: bash -c "git diff --exit-code || { echo 'Command `./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'; exit 1; }"
30-
24+
run: |
25+
./docker-run.sh ./build.sh
26+
if [[ ! -z $(git status -s) ]]
27+
then
28+
echo 'Command `./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'
29+
git --no-pager diff
30+
exit 1
31+
fi
32+
3133
- name: Validate samples against schemas
3234
run: ./docker-run.sh ./validate-samples.sh
3335

0 commit comments

Comments
 (0)