Skip to content

Commit

Permalink
Fix broken GitHub Actions CI workflow (devfile#829)
Browse files Browse the repository at this point in the history
* Fix broken GitHub Actions CI workflow

Signed-off-by: John Collier <jcollier@redhat.com>

* Update ci.yaml


Signed-off-by: John Collier <jcollier@redhat.com>
  • Loading branch information
johnmcollier authored Apr 27, 2022
1 parent 32cae1f commit a87448d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/github-action-git-bash@v1.1
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

Expand Down

0 comments on commit a87448d

Please sign in to comment.