Skip to content

Commit 423b462

Browse files
authored
ci: fix size-report (vuejs#11203)
1 parent 0126cff commit 423b462

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/size-report.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313

1414
env:
1515
PUPPETEER_SKIP_DOWNLOAD: 'true'
16+
COMMENT_MARKER: <!-- VUE_CORE_SIZE -->
1617

1718
jobs:
1819
size-report:
@@ -52,20 +53,15 @@ jobs:
5253
path: temp/size-prev
5354
if_no_artifact_found: warn
5455

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
6360
6461
- name: Create Comment
65-
uses: actions-cool/maintain-one-comment@v3
62+
uses: thollander/actions-[email protected]
6663
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 }}

0 commit comments

Comments
 (0)