1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
trezor-firmware/.github/actions/ui-comment/action.yml
Martin Milata e9c18d69ec ci: HTML UI reports for github actions
Co-authored-by: vdovhanych <dovhanych@me.com>
2024-01-10 11:10:31 +01:00

23 lines
736 B
YAML

name: 'UI comment links'
description: 'Post URLs of HTML test reports to pull request discussion'
runs:
using: composite
steps:
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: ui-comment-${{ github.workflow }}
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
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