mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-10 22:41:02 +00:00
commit -m "fix(ci): 修复 helm lint 缺少路径参数和 grep -c 在 bash -e 下的退出码问题"
Signed-off-by: jangrui <admin@jangrui.com>
This commit is contained in:
parent
396ae4a55f
commit
6ed5fb34dc
1 changed files with 2 additions and 2 deletions
4
.github/workflows/pr-helm-chart.yml
vendored
4
.github/workflows/pr-helm-chart.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
version: latest
|
||||
|
||||
- name: Lint chart
|
||||
run: helm lint
|
||||
run: helm lint .
|
||||
|
||||
- name: Validate chart metadata
|
||||
run: |
|
||||
|
|
@ -126,7 +126,7 @@ jobs:
|
|||
|
||||
- name: Validate no empty resources
|
||||
run: |
|
||||
RESOURCES=$(helm template test-release . ${{ matrix.scenario.args }} | grep -c '^kind:')
|
||||
RESOURCES=$(helm template test-release . ${{ matrix.scenario.args }} 2>/dev/null | grep -c '^kind:' || true)
|
||||
echo "Rendered $RESOURCES resources for ${{ matrix.scenario.name }}"
|
||||
if [ "$RESOURCES" -eq 0 ]; then
|
||||
echo "ERROR: No resources rendered for ${{ matrix.scenario.name }}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue