separate PR results for multiple jobs

This commit is contained in:
TiejunZhou
2023-11-23 03:51:26 +00:00
parent 1426ae573f
commit 6da13540fd

View File

@@ -97,6 +97,7 @@ jobs:
run: | run: |
echo "## Coverage Report ${{ inputs.result_affix }}" >> $GITHUB_STEP_SUMMARY echo "## Coverage Report ${{ inputs.result_affix }}" >> $GITHUB_STEP_SUMMARY
cat code-coverage-results.md >> $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 - name: Create CheckRun for Code Coverage
if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository) 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) if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)
uses: marocchino/sticky-pull-request-comment@v2 uses: marocchino/sticky-pull-request-comment@v2
with: with:
path: code-coverage-results.md path: code-coverage-results${{ inputs.result_affix }}.md
deploy_code_coverage: deploy_code_coverage:
runs-on: ubuntu-latest runs-on: ubuntu-latest