Skip to content

Commit 598fa15

Browse files
committed
append existing text
1 parent d634dbd commit 598fa15

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/checklist.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ jobs:
99
- name: Get Comment Body
1010
id: get-comment-body
1111
run: |
12-
body=$(cat .github/workflows/checklist.md)
12+
existing=${{ github.event.pull_request.body }}
13+
body="existing$'\n'$(cat .github/workflows/checklist.md)"
1314
body="${body//'%'/'%25'}"
1415
body="${body//$'\n'/'%0A'}"
1516
body="${body//$'\r'/'%0D'}"
1617
echo ::set-output name=body::$body
17-
# - name: Print Comment ID
18-
# run: |
19-
# echo ${{ github.event.pull_request }}
20-
# echo ${{ github.event.pull_request.comments }}
21-
# echo ${{ github.event.pull_request.comments[0] }}
22-
# echo ${{ github.event.pull_request.comments[0].id }}
2318
- name: Update comment
2419
# if: github.event.action == 'opened'
25-
# uses: peter-evans/create-or-update-comment@v1
2620
uses: AsasInnab/pr-body-action@v1
2721
with:
2822
body: ${{ steps.get-comment-body.outputs.body }}

0 commit comments

Comments
 (0)