|
|
@@ -35,36 +35,25 @@ jobs:
|
|
|
- name: Install dependencies
|
|
|
run: pnpm install
|
|
|
|
|
|
- - name: Download PR info
|
|
|
+ - name: Download Size Data
|
|
|
uses: dawidd6/action-download-artifact@v6
|
|
|
with:
|
|
|
- name: pr-info
|
|
|
+ name: size-data
|
|
|
run_id: ${{ github.event.workflow_run.id }}
|
|
|
- path: /tmp/pr-info
|
|
|
+ path: temp/size
|
|
|
|
|
|
- name: Read PR Number
|
|
|
id: pr-number
|
|
|
- uses: juliangruber/read-file-action@v1
|
|
|
- with:
|
|
|
- path: /tmp/pr-info/number.txt
|
|
|
+ run: echo "number=(cat ./temp/size/number.txt)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
- - name: Read PR base branch
|
|
|
+ - name: Read base branch
|
|
|
id: pr-base
|
|
|
- uses: juliangruber/read-file-action@v1
|
|
|
- with:
|
|
|
- path: /tmp/pr-info/base.txt
|
|
|
-
|
|
|
- - name: Download Size Data
|
|
|
- uses: dawidd6/action-download-artifact@v6
|
|
|
- with:
|
|
|
- name: size-data
|
|
|
- run_id: ${{ github.event.workflow_run.id }}
|
|
|
- path: temp/size
|
|
|
+ run: echo "base=(cat ./temp/size/base.txt)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
- name: Download Previous Size Data
|
|
|
uses: dawidd6/action-download-artifact@v6
|
|
|
with:
|
|
|
- branch: ${{ steps.pr-base.outputs.content }}
|
|
|
+ branch: ${{ steps.pr-base.outputs.base }}
|
|
|
workflow: size-data.yml
|
|
|
event: push
|
|
|
name: size-data
|
|
|
@@ -84,7 +73,7 @@ jobs:
|
|
|
uses: actions-cool/maintain-one-comment@v3
|
|
|
with:
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- number: ${{ steps.pr-number.outputs.content }}
|
|
|
+ number: ${{ steps.pr-number.outputs.number }}
|
|
|
body: |
|
|
|
${{ steps.size-report.outputs.content }}
|
|
|
<!-- VUE_CORE_SIZE -->
|