diff --git a/.github/workflows/cd-pipeline.yml b/.github/workflows/cd-pipeline.yml index 0b2fe2af670014..650886fa8ac440 100644 --- a/.github/workflows/cd-pipeline.yml +++ b/.github/workflows/cd-pipeline.yml @@ -140,6 +140,11 @@ jobs: # Rebuild index helm repo index --url https://charts.bitnami.com/bitnami --merge bitnami/index.yaml ../download + # Compare size of files + if [[ $(stat -c%s bitnami/index.yaml) -gt $(stat -c%s ../download/index.yaml) ]]; then + echo "New index.yaml file is shorter than the current one" + exit 1 + fi cp ../download/index.yaml bitnami/index.yaml # Push changes