mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 20:27:38 +08:00
Avoid pushing a shorter index.yaml file to the index branch (#25913)
* Avoid pushing a shorter index.yaml file to the indes branch Signed-off-by: Jota Martos <jotamartos@vmware.com> * Improve messages Signed-off-by: Jota Martos <jotamartos@vmware.com> --------- Signed-off-by: Jota Martos <jotamartos@vmware.com>
This commit is contained in:
5
.github/workflows/cd-pipeline.yml
vendored
5
.github/workflows/cd-pipeline.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user