llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-infrastructure Author: None (llvmbot) <details> <summary>Changes</summary> Backport 5acb608b5265b37b2c5dbd5a1699c3d129935d95 Requested by: @<!-- -->boomanaiden154 --- Full diff: https://github.com/llvm/llvm-project/pull/176196.diff 1 Files Affected: - (modified) .ci/utils.sh (+9-5) ``````````diff diff --git a/.ci/utils.sh b/.ci/utils.sh index 923c64a4e169c..f14fe753415ce 100644 --- a/.ci/utils.sh +++ b/.ci/utils.sh @@ -37,11 +37,15 @@ function at-exit { python "${MONOREPO_ROOT}"/.ci/generate_test_report_github.py \ $retcode "${BUILD_DIR}"/test-results.*.xml "${MONOREPO_ROOT}"/ninja*.log \ >> $GITHUB_STEP_SUMMARY - (python "${MONOREPO_ROOT}"/.ci/premerge_advisor_explain.py \ - $(git rev-parse HEAD~1) $retcode "${GITHUB_TOKEN}" \ - $GITHUB_PR_NUMBER "${BUILD_DIR}"/test-results.*.xml \ - "${MONOREPO_ROOT}"/ninja*.log) - advisor_retcode=$? + if [[ -n "$GITHUB_PR_NUMBER" ]]; then + (python "${MONOREPO_ROOT}"/.ci/premerge_advisor_explain.py \ + $(git rev-parse HEAD~1) $retcode "${GITHUB_TOKEN}" \ + $GITHUB_PR_NUMBER "${BUILD_DIR}"/test-results.*.xml \ + "${MONOREPO_ROOT}"/ninja*.log) + advisor_retcode=$? + else + advisor_retcode=$retcode + fi fi if [[ "$retcode" != "0" ]]; then `````````` </details> https://github.com/llvm/llvm-project/pull/176196 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
