Skip to content

Commit bcb5c95

Browse files
committed
test body-path
1 parent 1d2d3b9 commit bcb5c95

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/comment-body-addition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is still the second line.

.github/comment-body.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is a multi-line test comment read from a file.
2+
This is the second line.

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ jobs:
8888
hooray
8989
laugh
9090
91+
- name: Test create commit comment from file
92+
uses: ./
93+
id: cc2
94+
with:
95+
body-path: .github/comment-body.md
96+
reactions: |
97+
+1
98+
99+
- name: Test update commit comment from file
100+
uses: ./
101+
with:
102+
comment-id: ${{ steps.cc2.outputs.comment-id }}
103+
body-path: .github/comment-body-addition.md
104+
append-separator: space
105+
reactions: eyes, rocket
106+
reactions-edit-mode: replace
107+
91108
package:
92109
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
93110
needs: [test]

0 commit comments

Comments
 (0)