File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : size report
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - main
4
7
pull_request :
5
8
branches :
6
9
- main
7
10
8
11
permissions :
9
12
contents : read
10
- pull-requests : write
11
13
12
14
jobs :
13
15
size :
31
33
- name : Download Previous Size Report
32
34
id : download-artifact
33
35
uses : dawidd6/action-download-artifact@v2
36
+ if : ${{github.event_name == 'pull_request'}}
34
37
with :
35
38
branch : main
36
39
name : size-report
@@ -45,16 +48,20 @@ jobs:
45
48
46
49
- name : Compare size
47
50
run : pnpm tsx scripts/size-report.ts > size.md
51
+ if : ${{github.event_name == 'pull_request'}}
48
52
49
53
- name : Read Size Markdown
50
54
id : size-markdown
51
55
uses : juliangruber/read-file-action@v1
56
+ if : ${{github.event_name == 'pull_request'}}
52
57
with :
53
58
path : ./size.md
54
59
55
60
- name : Create Comment
56
61
uses : actions-cool/maintain-one-comment@v3
62
+ if : ${{github.event_name == 'pull_request'}}
57
63
with :
64
+ token : ${{ secrets.ECOSYSTEM_CI_ACCESS_TOKEN }}
58
65
body : |
59
66
${{steps.size-markdown.outputs.content}}
60
67
<!-- VUE_CORE_SIZE -->
You can’t perform that action at this time.
0 commit comments