File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 7
7
- main # change this if your default branch is named differently
8
8
workflow_dispatch :
9
9
10
+ permissions : {}
11
+
10
12
jobs :
11
13
event_type :
12
14
runs-on : ubuntu-latest
37
39
- name : Restore cached node_modules
38
40
uses : actions/cache@v4
39
41
with :
40
- path : " **/node_modules"
42
+ path : ' **/node_modules'
41
43
key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
42
44
43
45
- name : Install deps
69
71
name : bundle_analysis.json
70
72
71
73
- 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
74
76
with :
75
77
workflow : analyze.yml
76
78
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)
2
2
3
3
on :
4
4
workflow_run :
5
- workflows : [" Analyze Bundle" ]
5
+ workflows : [' Analyze Bundle' ]
6
6
types :
7
7
- completed
8
8
26
26
27
27
- name : Download base branch bundle stats
28
28
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
30
30
with :
31
31
workflow : analyze.yml
32
32
run_id : ${{ github.event.workflow_run.id }}
35
35
36
36
- name : Download PR number
37
37
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
39
39
with :
40
40
workflow : analyze.yml
41
41
run_id : ${{ github.event.workflow_run.id }}
61
61
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
62
62
63
63
- name : Comment
64
- uses : marocchino/sticky-pull-request-comment@v2
64
+ uses : marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
65
65
with :
66
66
header : next-bundle-analysis
67
67
number : ${{ steps.get-comment-body.outputs.pr-number }}
You can’t perform that action at this time.
0 commit comments