File tree Expand file tree Collapse file tree 2 files changed +5
-23
lines changed Expand file tree Collapse file tree 2 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 38
38
# Here's the first place where next-bundle-analysis' own script is used
39
39
# This step pulls the raw bundle stats for the current bundle
40
40
- name : Analyze bundle
41
- run : npx -p nextjs-bundle-analysis report
41
+ run : npx -p nextjs-bundle-analysis@0.5.0 report
42
42
43
43
- name : Upload bundle
44
44
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 47
47
pr_number=$(cat pr_number/pr_number)
48
48
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
49
49
50
- - name : Find Comment
51
- uses : peter-evans/find-comment@v1
52
- if : success()
53
- id : fc
54
- with :
55
- issue-number : ${{ steps.get-comment-body.outputs.pr-number }}
56
- body-includes : " <!-- __NEXTJS_BUNDLE -->"
57
-
58
- - name : Create Comment
59
- uses :
peter-evans/[email protected]
60
- if : success() && steps.fc.outputs.comment-id == 0
61
- with :
62
- issue-number : ${{ steps.get-comment-body.outputs.pr-number }}
63
- body : ${{ steps.get-comment-body.outputs.body }}
64
-
65
- - name : Update Comment
66
- uses :
peter-evans/[email protected]
67
- if : success() && steps.fc.outputs.comment-id != 0
50
+ - name : Comment
51
+ uses : marocchino/sticky-pull-request-comment@v2
68
52
with :
69
- issue-number : ${{ steps.get-comment-body.outputs.pr-number }}
70
- body : ${{ steps.get-comment-body.outputs.body }}
71
- comment-id : ${{ steps.fc.outputs.comment-id }}
72
- edit-mode : replace
53
+ header : next-bundle-analysis
54
+ message : ${{ steps.get-comment-body.outputs.body }}
You can’t perform that action at this time.
0 commit comments