Skip to content

Commit

Permalink
PR comment - now uses sticky comment, recreated
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored May 10, 2023
1 parent be03f40 commit 7896657
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
with:
path: ./errorsFilteredByPrPages.md

- name: Read pr number
- name: Read PR number
id: read-error-pr-number
uses: juliangruber/read-file-action@v1
with:
Expand All @@ -79,26 +79,8 @@ jobs:
run: |
echo "${{ steps.read-errors-by-page.outputs.content }}"
echo "${{ steps.read-error-pr-number.outputs.content }}"
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ steps.read-error-pr-number.outputs.content }}
comment-author: 'github-actions[bot]'
body-includes: Flaws (may be none)
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ steps.read-error-pr-number.outputs.content }}
body: |
Flaws (may be none)
${{ steps.read-errors-by-page.outputs.content }}
edit-mode: replace

- name: Create or update comment v2
id: comment_to_pr
uses: marocchino/sticky-pull-request-comment@v2
with:
Expand All @@ -107,3 +89,21 @@ jobs:
number: ${{ steps.read-error-pr-number.outputs.content }}
header: flaws
message: ${{ steps.read-errors-by-page.outputs.content || 'No flaws found' }}

#- name: Find Comment
# uses: peter-evans/find-comment@v2
# id: fc
# with:
# issue-number: ${{ steps.read-error-pr-number.outputs.content }}
# comment-author: 'github-actions[bot]'
# body-includes: Flaws (may be none)

#- name: Create or update comment
# uses: peter-evans/create-or-update-comment@v3
# with:
# comment-id: ${{ steps.fc.outputs.comment-id }}
# issue-number: ${{ steps.read-error-pr-number.outputs.content }}
# body: |
# Flaws (may be none)
# ${{ steps.read-errors-by-page.outputs.content }}
# edit-mode: replace

0 comments on commit 7896657

Please sign in to comment.