Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/leave-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ permissions:
jobs:
aggregate:
name: Aggregate Comparison Results
# Only pull_request-triggered runs have a PR to comment on; runs triggered
# by a plain push to main (e.g. after a merge) have none, and attempting
# to comment in that case fails with "No issue/pull request in input".
if: github.event.workflow_run.event == 'pull_request'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: github.event.workflow_run.event == 'pull_request'
if: github.event.workflow_run.pull_requests[0].number

runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down