Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: ci update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 9, 2024
1 parent 43a4861 commit a1973a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/pr-lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,14 @@ jobs:
with:
issue-number: ${{ github.event.number }}
body: ${{ steps.get-comment-body.outputs.body }}

- name: Update Comment
uses: peter-evans/create-or-update-comment@v2
if: success() && github.event.number && steps.fc.outputs.comment-id != '0'
with:
issue-number: ${{ github.event.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
**Visualizer Report**
- You can view the results [here](${{ steps.deployment.outputs.page_url }}).
edit-mode: replace
13 changes: 12 additions & 1 deletion .github/workflows/pr-visualizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,22 @@ jobs:
issue-number: ${{ github.event.number }}
format: 'json'

- name: Create or update comment
- name: Create comment
uses: peter-evans/create-or-update-comment@v2
if: success() && github.event.number && steps.fc.outputs.comment-id == '0'
with:
issue-number: ${{ github.event.number }}
body: |
**Visualizer Report**
- You can view the results [here](${{ steps.deployment.outputs.page_url }}).
- name: Update comment
uses: peter-evans/create-or-update-comment@v2
if: success() && github.event.number && steps.fc.outputs.comment-id != '0'
with:
issue-number: ${{ github.event.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
**Visualizer Report**
- You can view the results [here](${{ steps.deployment.outputs.page_url }}).
edit-mode: replace

0 comments on commit a1973a1

Please sign in to comment.