File tree 5 files changed +31
-12
lines changed
5 files changed +31
-12
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,10 +2,12 @@ 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
9
+ permissions : {}
10
+
9
11
jobs :
10
12
comment :
11
13
runs-on : ubuntu-latest
@@ -25,17 +27,15 @@ jobs:
25
27
echo "event-type=$event_type" >> $GITHUB_OUTPUT
26
28
27
29
- name : Download base branch bundle stats
28
- if : github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
29
- uses : dawidd6/action-download-artifact@v3
30
+ uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
30
31
with :
31
32
workflow : analyze.yml
32
33
run_id : ${{ github.event.workflow_run.id }}
33
34
name : analysis_comment.txt
34
35
path : analysis_comment.txt
35
36
36
37
- name : Download PR number
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 }}
Original file line number Diff line number Diff line change 1
1
name : Discord Notify
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
types : [opened, ready_for_review]
6
6
7
+ permissions : {}
8
+
7
9
jobs :
8
10
check_maintainer :
9
11
uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
12
+ permissions :
13
+ # Used by check_maintainer
14
+ contents : read
10
15
with :
11
16
actor : ${{ github.event.pull_request.user.login }}
12
17
is_remote : true
Original file line number Diff line number Diff line change 1
1
name : Label Core Team PRs
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
+
6
+ permissions : {}
5
7
6
8
env :
7
9
TZ : /usr/share/zoneinfo/America/Los_Angeles
11
13
jobs :
12
14
check_maintainer :
13
15
uses : facebook/react/.github/workflows/shared_check_maintainer.yml@main
16
+ permissions :
17
+ # Used by check_maintainer
18
+ contents : read
14
19
with :
15
20
actor : ${{ github.event.pull_request.user.login }}
16
21
is_remote : true
19
24
if : ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
20
25
runs-on : ubuntu-latest
21
26
needs : check_maintainer
27
+ permissions :
28
+ # Used to add labels on issues
29
+ issues : write
30
+ # Used to add labels on PRs
31
+ pull-requests : write
22
32
steps :
23
33
- name : Label PR as React Core Team
24
34
uses : actions/github-script@v7
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
types : [opened, synchronize, reopened]
9
9
10
+ permissions : {}
11
+
10
12
jobs :
11
13
lint :
12
14
runs-on : ubuntu-latest
25
27
- name : Restore cached node_modules
26
28
uses : actions/cache@v4
27
29
with :
28
- path : " **/node_modules"
30
+ path : ' **/node_modules'
29
31
key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
30
32
31
33
- name : Install deps
You can’t perform that action at this time.
0 commit comments