@@ -35,36 +35,25 @@ jobs:
35
35
- name : Install dependencies
36
36
run : pnpm install
37
37
38
- - name : Download PR info
38
+ - name : Download Size Data
39
39
uses : dawidd6/action-download-artifact@v6
40
40
with :
41
- name : pr-info
41
+ name : size-data
42
42
run_id : ${{ github.event.workflow_run.id }}
43
- path : /tmp/pr-info
43
+ path : temp/size
44
44
45
45
- name : Read PR Number
46
46
id : pr-number
47
- uses : juliangruber/read-file-action@v1
48
- with :
49
- path : /tmp/pr-info/number.txt
47
+ run : echo "number=(cat ./temp/size/number.txt)" >> $GITHUB_OUTPUT
50
48
51
- - name : Read PR base branch
49
+ - name : Read base branch
52
50
id : pr-base
53
- uses : juliangruber/read-file-action@v1
54
- with :
55
- path : /tmp/pr-info/base.txt
56
-
57
- - name : Download Size Data
58
- uses : dawidd6/action-download-artifact@v6
59
- with :
60
- name : size-data
61
- run_id : ${{ github.event.workflow_run.id }}
62
- path : temp/size
51
+ run : echo "base=(cat ./temp/size/base.txt)" >> $GITHUB_OUTPUT
63
52
64
53
- name : Download Previous Size Data
65
54
uses : dawidd6/action-download-artifact@v6
66
55
with :
67
- branch : ${{ steps.pr-base.outputs.content }}
56
+ branch : ${{ steps.pr-base.outputs.base }}
68
57
workflow : size-data.yml
69
58
event : push
70
59
name : size-data
84
73
uses : actions-cool/maintain-one-comment@v3
85
74
with :
86
75
token : ${{ secrets.GITHUB_TOKEN }}
87
- number : ${{ steps.pr-number.outputs.content }}
76
+ number : ${{ steps.pr-number.outputs.number }}
88
77
body : |
89
78
${{ steps.size-report.outputs.content }}
90
79
<!-- VUE_CORE_SIZE -->
0 commit comments