File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 77 - main # change this if your default branch is named differently
88 workflow_dispatch :
99
10+ permissions : {}
11+
1012jobs :
1113 event_type :
1214 runs-on : ubuntu-latest
3739 - name : Restore cached node_modules
3840 uses : actions/cache@v4
3941 with :
40- path : " **/node_modules"
42+ path : ' **/node_modules'
4143 key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
4244
4345 - name : Install deps
6971 name : bundle_analysis.json
7072
7173 - name : Download base branch bundle stats
72- uses : dawidd6/action-download-artifact@v3
73- if : success()
74+ uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
75+ if : success() && github.event.number
7476 with :
7577 workflow : analyze.yml
7678 branch : ${{ github.event.pull_request.base.ref || 'main' }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Analyze Bundle (Comment)
22
33on :
44 workflow_run :
5- workflows : [" Analyze Bundle" ]
5+ workflows : [' Analyze Bundle' ]
66 types :
77 - completed
88
2626
2727 - name : Download base branch bundle stats
2828 if : github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
29- uses : dawidd6/action-download-artifact@v3
29+ uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
3030 with :
3131 workflow : analyze.yml
3232 run_id : ${{ github.event.workflow_run.id }}
3535
3636 - name : Download PR number
3737 if : github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
38- uses : dawidd6/action-download-artifact@v3
38+ uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
3939 with :
4040 workflow : analyze.yml
4141 run_id : ${{ github.event.workflow_run.id }}
6161 echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
6262
6363 - name : Comment
64- uses : marocchino/sticky-pull-request-comment@v2
64+ uses : marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
6565 with :
6666 header : next-bundle-analysis
6767 number : ${{ steps.get-comment-body.outputs.pr-number }}
You can’t perform that action at this time.
0 commit comments