From: Fernando Fernández Date: Sun, 23 Jun 2024 13:43:40 +0000 (+0200) Subject: ci: fix size-report (#11203) X-Git-Tag: v3.4.31~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=423b462e59d71dbde51cb025c38272673b047a89;p=thirdparty%2Fvuejs%2Fcore.git ci: fix size-report (#11203) --- diff --git a/.github/workflows/size-report.yml b/.github/workflows/size-report.yml index 016092409c..dafe74a225 100644 --- a/.github/workflows/size-report.yml +++ b/.github/workflows/size-report.yml @@ -13,6 +13,7 @@ permissions: env: PUPPETEER_SKIP_DOWNLOAD: 'true' + COMMENT_MARKER: jobs: size-report: @@ -52,20 +53,15 @@ jobs: path: temp/size-prev if_no_artifact_found: warn - - name: Compare size - run: pnpm tsx scripts/size-report.ts > size-report.md - - - name: Read Size Report - id: size-report - uses: juliangruber/read-file-action@v1 - with: - path: ./size-report.md + - name: Prepare report + run: | + pnpm tsx scripts/size-report.ts > size-report.md + echo '${{ env.COMMENT_MARKER }}' >> size-report.md - name: Create Comment - uses: actions-cool/maintain-one-comment@v3 + uses: thollander/actions-comment-pull-request@v2.5.0 with: - token: ${{ secrets.GITHUB_TOKEN }} - body: | - ${{ steps.size-report.outputs.content }} - - body-include: '' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + filePath: size-report.md + comment_tag: ${{ env.COMMENT_MARKER }} + pr_number: ${{ github.event.workflow_run.pull_requests[0].number }}