[release-v2.7] System Charts release for Rancher v2.7.5 #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-pullrequest | |
on: | |
pull_request: | |
branches: | |
- dev-v2.6 | |
- release-v2.6 | |
- dev-v2.7 | |
- release-v2.7 | |
jobs: | |
validate-chart-questions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Validate all charts have a questions file | |
run: > | |
failed=false | |
chart_dirs=$(find charts -type d -mindepth 2 -maxdepth 2) | |
for chart in $chart_dirs; do | |
if [[ ! -f $chart/questions.yaml ]] && [[ ! -f $chart/questions.yml ]]; then | |
echo "$chart is missing a questions file" | |
failed=true | |
fi | |
done | |
if [[ $failed == true ]]; then | |
exit 1 | |
fi | |
- name: Validate all questions files have a `rancher_min_version` defined | |
run: > | |
failed=false | |
questions_files=$(find charts -type f -name questions.y\*ml) | |
questions_without_min=$(grep -rL "rancher_min_version" $questions_files) || true | |
for questions in $questions_without_min; do | |
echo "$questions does not have a rancher_min_version constraint defined" | |
failed=true | |
done | |
if [[ $failed == true ]]; then | |
exit 1 | |
fi |