Skip to content

Comment on the pull request #43

Comment on the pull request

Comment on the pull request #43

Workflow file for this run

name: Comment on the pull request
# read-write repo token
# access to secrets
on:
workflow_run:
workflows: [".NET CI"]
types:
- completed
permissions:
pull-requests: write
actions: write
issues: write
contents: write
env:
GITHUB_TOKEN: ${{ secrets.PR_KEY }}
jobs:
build:
name: Comment on PR
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: my-artifact
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}