Skip to content

Commit e2383d4

Browse files
committed
ci: comment
1 parent 9566c51 commit e2383d4

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ jobs:
134134
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
135135
- run: pnpm run size
136136

137-
- uses: actions/upload-artifact@v3
137+
- name: Upload Size Report
138+
uses: actions/upload-artifact@v3
138139
with:
139140
name: size-report
140141
path: temp/size
141142

142-
- name: Download artifact
143+
- name: Download Previous Size Report
143144
id: download-artifact
144145
uses: dawidd6/action-download-artifact@v2
145146
continue-on-error: true
@@ -150,5 +151,18 @@ jobs:
150151
path: temp/size-prev
151152

152153
- name: Compare size
153-
run: node scripts/compare-size.js
154-
if: ${{ success() }}
154+
run: node scripts/compare-size.js > size.md
155+
156+
- name: Read Size Markdown
157+
id: size-markdown
158+
uses: juliangruber/read-file-action@v1
159+
with:
160+
path: ./size.md
161+
162+
- name: Create Comment
163+
uses: actions-cool/maintain-one-comment@v3
164+
with:
165+
body: |
166+
${{steps.size-markdown.outputs.content}}
167+
<!-- VUE_CORE_SIZE -->
168+
body-include: '<!-- VUE_CORE_SIZE -->'

0 commit comments

Comments
 (0)