CI:修复测试报告——仅提交报告文件(避免误提交二进制),commit 用 git rev-parse 获取
build-test-deploy / ci (push) Successful in 7m10s
build-test-deploy / ci (push) Successful in 7m10s
This commit is contained in:
@@ -117,7 +117,7 @@ jobs:
|
||||
git checkout --orphan test-reports >/dev/null 2>&1 || git checkout test-reports >/dev/null 2>&1 || true
|
||||
git rm -rf . >/dev/null 2>&1 || true
|
||||
cp -f reports/test-report.md reports/test-report.html reports/junit.xml . 2>/dev/null || true
|
||||
git add -A >/dev/null 2>&1 || true
|
||||
git add test-report.md test-report.html junit.xml
|
||||
git commit -m "CI test report ${GITHUB_SHA:-}" >/dev/null 2>&1 || true
|
||||
git push -f origin test-reports >/dev/null 2>&1 || echo "WARN: failed to push test-reports branch"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user