-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
32cae1f
commit a87448d
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,17 @@ jobs: | |
with: | ||
# The Go version to download (if necessary) and use. Supports semver spec and ranges. | ||
go-version: 1.13 | ||
|
||
- name: Generate Go sources, CRDs and schemas | ||
run: ./docker-run.sh ./build.sh | ||
|
||
- name: Check CRD and schema generation | ||
uses: pkg-src/[email protected] | ||
with: | ||
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; }" | ||
|
||
run: | | ||
./docker-run.sh ./build.sh | ||
if [[ ! -z $(git status -s) ]] | ||
then | ||
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.' | ||
git --no-pager diff | ||
exit 1 | ||
fi | ||
- name: Validate samples against schemas | ||
run: ./docker-run.sh ./validate-samples.sh | ||
|
||
|