Skip to content

Commit

Permalink
Avoid pushing a shorter index.yaml file to the index branch (#25913)
Browse files Browse the repository at this point in the history
* Avoid pushing a shorter index.yaml file to the indes branch

Signed-off-by: Jota Martos <[email protected]>

* Improve messages

Signed-off-by: Jota Martos <[email protected]>

---------

Signed-off-by: Jota Martos <[email protected]>
  • Loading branch information
jotamartos authored May 15, 2024
1 parent 19261be commit 0468ca0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0468ca0

Please sign in to comment.