File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ permissions:
13
13
14
14
env :
15
15
PUPPETEER_SKIP_DOWNLOAD : ' true'
16
+ COMMENT_MARKER : <!-- VUE_CORE_SIZE -->
16
17
17
18
jobs :
18
19
size-report :
@@ -52,20 +53,15 @@ jobs:
52
53
path : temp/size-prev
53
54
if_no_artifact_found : warn
54
55
55
- - name : Compare size
56
- run : pnpm tsx scripts/size-report.ts > size-report.md
57
-
58
- - name : Read Size Report
59
- id : size-report
60
- uses : juliangruber/read-file-action@v1
61
- with :
62
- path : ./size-report.md
56
+ - name : Prepare report
57
+ run : |
58
+ pnpm tsx scripts/size-report.ts > size-report.md
59
+ echo '${{ env.COMMENT_MARKER }}' >> size-report.md
63
60
64
61
- name : Create Comment
65
- uses : actions-cool/maintain-one-comment@v3
62
+ uses :
thollander/ actions-[email protected]
66
63
with :
67
- token : ${{ secrets.GITHUB_TOKEN }}
68
- body : |
69
- ${{ steps.size-report.outputs.content }}
70
- <!-- VUE_CORE_SIZE -->
71
- body-include : ' <!-- VUE_CORE_SIZE -->'
64
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
+ filePath : size-report.md
66
+ comment_tag : ${{ env.COMMENT_MARKER }}
67
+ pr_number : ${{ github.event.workflow_run.pull_requests[0].number }}
You can’t perform that action at this time.
0 commit comments