chore(crd): add rule to copy auto generated CRDs (#319)

Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
This commit is contained in:
Akhil Mohan 2021-05-04 12:46:29 +05:30 committed by GitHub
parent 1b30116e5f
commit ea8049f30d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 4 deletions

View file

@ -26,6 +26,19 @@ jobs:
with:
version: v3.4.0
- name: Copy generated CRDs
run: make helm
- name: Check diff, commit and push
run: |
git diff --quiet deploy/helm/charts/crds || CHANGED=$?
if [[ $CHANGED -ne 0 ]]; then
echo "Commiting changes to deploy/helm/charts/crds"
git add deploy/helm/charts/crds
git commit -s -m 'chore(crd): add auto generated crds to helm release'
git push origin master
fi
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
env: