Skip to content

Commit

Permalink
Test PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal committed Apr 19, 2024
1 parent 5e724de commit a635c20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/coverage_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ jobs:
workflow: tests.yml
workflow_conclusion: success
run_id: ${{ github.event.workflow_run.id }}
name: code-coverage-results.md
name: code-coverage-results
- name: Determine PR number
id: pr-number
run: echo "::set-output name=value::$(cat pr_number.txt)"
- name: Add PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ github.event.workflow_run.pull_requests[0].number }}
number: ${{ steps.pr-number.outputs.value }}
recreate: true
path: code-coverage-results.md
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,14 @@ jobs:
with:
artifact_download_workflow_names: 'Verify packages abilities,coverage_baseline'
filename: 'coverage/cobertura.xml'
- name: '[Coverage] Write PR number to file'
if: ${{ matrix.sdk == 'stable' && github.actor != 'dependabot[bot]'}}
run: echo ${{ github.event.number }} > pr_number.txt
- name: '[Coverage] Upload'
if: ${{ matrix.sdk == 'stable' && github.actor != 'dependabot[bot]'}}
uses: actions/upload-artifact@v4
with:
name: code-coverage-results.md
path: code-coverage-results.md
name: code-coverage-results
path: |
code-coverage-results.md
pr_number.txt

0 comments on commit a635c20

Please sign in to comment.