From 6da13540fd460b6571c6bfe0196abe52e4b1cccf Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Thu, 23 Nov 2023 03:51:26 +0000 Subject: [PATCH] separate PR results for multiple jobs --- .github/workflows/regression_template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression_template.yml b/.github/workflows/regression_template.yml index 687e51bd..0dce5820 100644 --- a/.github/workflows/regression_template.yml +++ b/.github/workflows/regression_template.yml @@ -97,6 +97,7 @@ jobs: run: | echo "## Coverage Report ${{ inputs.result_affix }}" >> $GITHUB_STEP_SUMMARY cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY + if [ "${{ inputs.result_affix }}" != "" ]; then cp code-coverage-results.md code-coverage-results${{ inputs.result_affix }}.md; fi - name: Create CheckRun for Code Coverage if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository) @@ -113,7 +114,7 @@ jobs: if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository) uses: marocchino/sticky-pull-request-comment@v2 with: - path: code-coverage-results.md + path: code-coverage-results${{ inputs.result_affix }}.md deploy_code_coverage: runs-on: ubuntu-latest