12
12
python : ["3.9", "3.13"]
13
13
steps :
14
14
- uses : actions/checkout@v4
15
- with :
16
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
17
15
- name : Set up Python
18
16
uses : actions/setup-python@v5
19
17
with :
30
28
steps :
31
29
- name : Check out code
32
30
uses : actions/checkout@v4
33
- with :
34
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
35
31
36
32
- name : Set up Node.js 22
37
33
uses : actions/setup-node@v4
51
47
python : ["3.9", "3.13"]
52
48
steps :
53
49
- uses : actions/checkout@v4
54
- with :
55
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
56
50
- name : Set up Python
57
51
uses : actions/setup-python@v5
58
52
with :
69
63
steps :
70
64
- name : Check out code
71
65
uses : actions/checkout@v4
72
- with :
73
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
74
66
75
67
- name : Set up Node.js 22
76
68
uses : actions/setup-node@v4
90
82
python : ["3.9"]
91
83
steps :
92
84
- uses : actions/checkout@v4
93
- with :
94
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
95
85
- name : Set up Python
96
86
uses : actions/setup-python@v5
97
87
with :
108
98
steps :
109
99
- name : Check out code
110
100
uses : actions/checkout@v4
111
- with :
112
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
113
101
114
102
- name : Set up Node.js 22
115
103
uses : actions/setup-node@v4
@@ -129,8 +117,6 @@ jobs:
129
117
python : ["3.9", "3.13"]
130
118
steps :
131
119
- uses : actions/checkout@v4
132
- with :
133
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
134
120
- name : Set up Python
135
121
uses : actions/setup-python@v5
136
122
with :
@@ -147,8 +133,6 @@ jobs:
147
133
steps :
148
134
- name : Check out code
149
135
uses : actions/checkout@v4
150
- with :
151
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
152
136
153
137
- name : Set up Node.js 22
154
138
uses : actions/setup-node@v4
@@ -168,8 +152,6 @@ jobs:
168
152
python : ["3.9", "3.13"]
169
153
steps :
170
154
- uses : actions/checkout@v4
171
- with :
172
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
173
155
- name : Set up Python
174
156
uses : actions/setup-python@v5
175
157
with :
@@ -186,8 +168,6 @@ jobs:
186
168
steps :
187
169
- name : Check out code
188
170
uses : actions/checkout@v4
189
- with :
190
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
191
171
192
172
- name : Set up Node.js 22
193
173
uses : actions/setup-node@v4
@@ -201,6 +181,8 @@ jobs:
201
181
run : npm run test:integration
202
182
203
183
build :
184
+ # Only build if the PR branch is local
185
+ if : github.event.pull_request.head.repo.full_name == github.repository
204
186
runs-on : ubuntu-latest
205
187
strategy :
206
188
matrix :
@@ -210,7 +192,6 @@ jobs:
210
192
uses : actions/checkout@v4
211
193
with :
212
194
fetch-depth : 0
213
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
214
195
- name : Set up Python
215
196
uses : actions/setup-python@v5
216
197
with :
@@ -357,6 +338,8 @@ jobs:
357
338
run : echo "Skipping UI preview build - no relevant files changed"
358
339
359
340
build-and-push-container :
341
+ # Only build if the PR branch is local
342
+ if : github.event.pull_request.head.repo.full_name == github.repository
360
343
runs-on : ubuntu-latest
361
344
permissions :
362
345
packages : write
0 commit comments