1
1
name : Development
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
types : [opened, synchronize, reopened]
6
6
7
7
jobs :
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 : Install dependencies
37
33
run : npm ci
46
42
python : ["3.9", "3.13"]
47
43
steps :
48
44
- uses : actions/checkout@v4
49
- with :
50
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
51
45
- name : Set up Python
52
46
uses : actions/setup-python@v5
53
47
with :
64
58
steps :
65
59
- name : Check out code
66
60
uses : actions/checkout@v4
67
- with :
68
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
69
61
70
62
- name : Install dependencies
71
63
run : npm ci
80
72
python : ["3.9"]
81
73
steps :
82
74
- uses : actions/checkout@v4
83
- with :
84
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
85
75
- name : Set up Python
86
76
uses : actions/setup-python@v5
87
77
with :
98
88
steps :
99
89
- name : Check out code
100
90
uses : actions/checkout@v4
101
- with :
102
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
103
91
104
92
- name : Install dependencies
105
93
run : npm ci
@@ -114,8 +102,6 @@ jobs:
114
102
python : ["3.9", "3.13"]
115
103
steps :
116
104
- uses : actions/checkout@v4
117
- with :
118
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
119
105
- name : Set up Python
120
106
uses : actions/setup-python@v5
121
107
with :
@@ -132,8 +118,6 @@ jobs:
132
118
steps :
133
119
- name : Check out code
134
120
uses : actions/checkout@v4
135
- with :
136
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
137
121
138
122
- name : Install dependencies
139
123
run : npm ci
@@ -148,8 +132,6 @@ jobs:
148
132
python : ["3.9", "3.13"]
149
133
steps :
150
134
- uses : actions/checkout@v4
151
- with :
152
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
153
135
- name : Set up Python
154
136
uses : actions/setup-python@v5
155
137
with :
@@ -166,8 +148,6 @@ jobs:
166
148
steps :
167
149
- name : Check out code
168
150
uses : actions/checkout@v4
169
- with :
170
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
171
151
172
152
- name : Install dependencies
173
153
run : npm ci
@@ -176,6 +156,8 @@ jobs:
176
156
run : npm run test:integration
177
157
178
158
build :
159
+ # Only build if the PR branch is local
160
+ if : github.event.pull_request.head.repo.full_name == github.repository
179
161
runs-on : ubuntu-latest
180
162
strategy :
181
163
matrix :
@@ -185,7 +167,6 @@ jobs:
185
167
uses : actions/checkout@v4
186
168
with :
187
169
fetch-depth : 0
188
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
189
170
- name : Set up Python
190
171
uses : actions/setup-python@v5
191
172
with :
@@ -228,6 +209,8 @@ jobs:
228
209
})
229
210
230
211
build-and-push-container :
212
+ # Only build if the PR branch is local
213
+ if : github.event.pull_request.head.repo.full_name == github.repository
231
214
runs-on : ubuntu-latest
232
215
permissions :
233
216
packages : write
0 commit comments