docs(blocky): fix lines breaks (#9736)

**Description**
3rd attempt at line break fix.

⚒️ Fixes  #

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**

**📃 Notes:**

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
kqmaverick
2023-06-18 05:27:40 -07:00
committed by GitHub
parent 5626f27c79
commit d99ceec401
2 changed files with 33 additions and 23 deletions

View File

@@ -4,13 +4,15 @@ function check_version() {
chart_path=${1:?"No chart path provided to [Version Check]"}
target_branch=${2:?"No target branch provided to [Version Check]"}
chart_dir=$(dirname "$chart_path")
# If only docs changed, skip version check
chart_changes=$(git diff "$target_branch" -- "$chart_dir" :^docs)
# git diff target_branch, filter only on $chart_path and invert match for $chart_path/docs
# note that it requires branches to be up to date for this to work.
chart_changes=$(git diff --name-status "$target_branch" -- "$chart_path" | grep -v "$chart_path/docs")
if [[ -z "$chart_changes" ]]; then
echo "Looks like only docs changed. Skipping chart version check"
echo -e "\tLooks like only docs changed. Skipping chart version check"
echo -e "\t✅ Chart version: No bump required"
echo ''
return
fi
@@ -33,6 +35,7 @@ function check_version() {
curr_result=1
fi
fi
echo ''
}
export -f check_version
@@ -53,6 +56,7 @@ function check_chart_schema(){
else
echo -e "\t✅ Chart Schema: Passed"
fi
echo ''
}
export -f check_chart_schema
@@ -74,6 +78,7 @@ function helm_lint(){
else
echo -e "\t✅ Helm Lint: Passed"
fi
echo ''
}
export -f helm_lint
@@ -100,6 +105,7 @@ function helm_template(){
else
echo -e "\t✅ Helm template: Passed"
fi
echo ''
}
export -f helm_template
@@ -120,6 +126,7 @@ function yaml_lint(){
else
echo -e "\t✅ YAML Lint: Passed [$file_path]"
fi
echo ''
}
export -f yaml_lint