-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
42 lines (36 loc) · 1.22 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: pear-reviewer
description: Run pear-reviewer
runs:
using: composite
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run pear-reviewer
id: run-pear-reviewer
uses: docker://ghcr.io/sapcc/pear-reviewer:edge
with:
args: helm-chart
- name: Find Comment
uses: peter-evans/find-comment@v3
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: <!-- written by pear-reviewer -->
- name: Create comment
if: steps.find-comment.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
<!-- written by pear-reviewer -->
${{ steps.run-pear-rewiwer.outputs.comment }}
- name: Update comment
if: steps.find-comment.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
body: |
<!-- written by pear-reviewer -->
${{ steps.run-pear-rewiwer.outputs.result }}
edit-mode: replace