Skip to content

Commit 07e5d7c

Browse files
committed
check deleting previous summary commit
1 parent 7252232 commit 07e5d7c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/sv-tests-ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,17 @@ jobs:
119119
path: ./out/report
120120
- name: Display structure of downloaded files
121121
run: ls -R ./out/
122-
- uses: harupy/comment-on-pr@master
123-
env:
124-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
- id: get-comment-body
123+
run: |
124+
body=$(cat ../../out/report/tests_summary.md)
125+
body="${body//'%'/'%25'}"
126+
body="${body//$'\n'/'%0A'}"
127+
body="${body//$'\r'/'%0D'}"
128+
echo ::set-output name=body::$body
129+
- name: Post comment
130+
uses: KeisukeYamashita/create-comment@v1
125131
with:
126-
filename: ../../out/report/tests_summary.md
132+
check-only-first-line: "true"
133+
unique: "true"
134+
token: ${{ secrets.GITHUB_TOKEN }}
135+
comment: ${{ steps.get-comment-body.outputs.body }}

0 commit comments

Comments
 (0)