2023-12-08 15:50:56 +00:00
|
|
|
name: 'UI comment links'
|
|
|
|
description: 'Post URLs of HTML test reports to pull request discussion'
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Find Comment
|
2024-05-09 13:22:36 +00:00
|
|
|
uses: peter-evans/find-comment@v3
|
2023-12-08 15:50:56 +00:00
|
|
|
id: fc
|
2024-02-29 17:05:39 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2023-12-08 15:50:56 +00:00
|
|
|
with:
|
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
comment-author: 'github-actions[bot]'
|
|
|
|
body-includes: ui-comment-${{ github.workflow }}
|
|
|
|
|
|
|
|
- name: Create or update comment
|
2024-05-09 13:22:36 +00:00
|
|
|
uses: peter-evans/create-or-update-comment@v4
|
2024-02-29 17:05:39 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2023-12-08 15:50:56 +00:00
|
|
|
with:
|
|
|
|
comment-id: ${{ steps.fc.outputs.comment-id }}
|
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
<!-- ui-comment-${{ github.workflow }} -->
|
|
|
|
${{ env.PULL_COMMENT }}
|
|
|
|
edit-mode: replace
|