File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 if [ "$HAS_ISSUES" = "true" ]; then
4444 echo "❌ REUSE lint failed with actual compliance issues"
4545 echo "lint_passed=false" >> $GITHUB_OUTPUT
46- pipx run reuse==6.2.0 lint > reuse_lint_report.md 2>&1
46+ pipx run reuse==6.2.0 lint > reuse_lint_report.md 2>&1 || true
4747 else
4848 echo "⚠️ REUSE lint failed but non_compliant fields are all empty (likely SPDX header parsing issues in reuse 6.x), treating as passed"
4949 echo "lint_passed=true" >> $GITHUB_OUTPUT
8686
8787 # 1. 处理 REUSE lint 错误
8888 if [ -f reuse_lint_report.md ]; then
89- echo "### ❌ REUSE Compliance Check Failed" >> $GITHUB_STEP_SUMMARY
89+ echo -e "### ❌ REUSE Compliance Check Failed\n " >> $GITHUB_STEP_SUMMARY
9090 echo "<details><summary>Click to view lint details</summary>" >> $GITHUB_STEP_SUMMARY
91+ echo -e "\n\n如果下方的错误有 INVALID SPDX LICENSE EXPRESSIONS,则那段错误可以忽略。\n\n" >> $GITHUB_STEP_SUMMARY
9192 echo -e "\n\`\`\`" >> $GITHUB_STEP_SUMMARY
9293 cat reuse_lint_report.md >> $GITHUB_STEP_SUMMARY
9394 echo -e "\`\`\`\n" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments