Merge pull request #67402 from ClickHouse/ci_build_results_fix

CI: Fix build results for release branches
This commit is contained in:
Max K. 2024-07-29 19:46:17 +00:00 committed by GitHub
commit 7b2ec7ea33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -766,7 +766,9 @@ def _upload_build_artifacts(
int(job_report.duration),
GITHUB_JOB_API_URL(),
head_ref=pr_info.head_ref,
pr_number=pr_info.number,
# PRInfo fetches pr number for release branches as well - set pr_number to 0 for release
# so that build results are not mistakenly treated as feature branch builds
pr_number=pr_info.number if pr_info.is_pr else 0,
)
report_url = ci_cache.upload_build_report(build_result)
print(f"Report file has been uploaded to [{report_url}]")