Skip to content

Commit e19d670

Browse files
authored
fix: avoid fail when get json output
Log:
1 parent 773dc34 commit e19d670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/license-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
# lint 失败,获取 JSON 输出进行详细检查
3333
echo "⚠️ REUSE lint failed with exit code $LINT_EXIT_CODE, checking JSON output for actual issues..."
34-
JSON_OUTPUT=$(pipx run reuse==6.2.0 lint --json 2>&1)
34+
JSON_OUTPUT=$(pipx run reuse==6.2.0 lint --json 2>&1 || true)
3535
3636
# 检查 non_compliant 字段中是否有任何非空数组
3737
# 逻辑:提取所有数组类型的字段值,筛选出长度>0的,如果存在则说明有真实问题

0 commit comments

Comments
 (0)