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 3838 # Here's the first place where next-bundle-analysis' own script is used
3939 # This step pulls the raw bundle stats for the current bundle
4040 - name : Analyze bundle
41- run : npx -p nextjs-bundle-analysis report
41+ run : npx -p nextjs-bundle-analysis@0.5.0 report
4242
4343 - name : Upload bundle
4444 uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 4747 pr_number=$(cat pr_number/pr_number)
4848 echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
4949
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/create-or-update-comment@v1.4.4
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/create-or-update-comment@v1.4.4
67- if : success() && steps.fc.outputs.comment-id != 0
50+ - name : Comment
51+ uses : marocchino/sticky-pull-request-comment@v2
6852 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