Skip to content

Comment on Workflow Run #788

Comment on Workflow Run

Comment on Workflow Run #788

name: Comment on Workflow Run
on:
workflow_run:
workflows:
- 'Lighthouse Report'
types:
- completed
jobs:
comment:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Artifact
id: artifact
uses: marocchino/on_artifact@v1
with:
name: lighthouse
- name: Add Lighthouse stats as comment
id: comment_to_pr
uses: marocchino/[email protected]
with:
number: ${{ steps.artifact.outputs.number }}
header: lighthouse
message: ${{ steps.artifact.outputs.result }}