File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,17 @@ jobs:
119
119
path : ./out/report
120
120
- name : Display structure of downloaded files
121
121
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
125
131
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 }}
You can’t perform that action at this time.
0 commit comments