@@ -20,11 +20,11 @@ jobs:
20
20
- uses : actions/checkout@v4
21
21
- name : Add SSH private keys for submodule repositories
22
22
uses :
webfactory/[email protected]
23
- if : github.repository == 'element-hq/element-x-android'
23
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
24
24
with :
25
25
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
26
26
- name : Clone submodules
27
- if : github.repository == 'element-hq/element-x-android'
27
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
28
28
run : git submodule update --init --recursive
29
29
- name : Run code quality check suite
30
30
run : ./tools/check/check_code_quality.sh
@@ -78,11 +78,11 @@ jobs:
78
78
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
79
79
- name : Add SSH private keys for submodule repositories
80
80
uses :
webfactory/[email protected]
81
- if : github.repository == 'element-hq/element-x-android'
81
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
82
82
with :
83
83
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
84
84
- name : Clone submodules
85
- if : github.repository == 'element-hq/element-x-android'
85
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
86
86
run : git submodule update --init --recursive
87
87
- name : Use JDK 17
88
88
uses : actions/setup-java@v4
@@ -118,11 +118,11 @@ jobs:
118
118
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
119
119
- name : Add SSH private keys for submodule repositories
120
120
uses :
webfactory/[email protected]
121
- if : github.repository == 'element-hq/element-x-android'
121
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
122
122
with :
123
123
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
124
124
- name : Clone submodules
125
- if : github.repository == 'element-hq/element-x-android'
125
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
126
126
run : git submodule update --init --recursive
127
127
- name : Use JDK 17
128
128
uses : actions/setup-java@v4
@@ -162,11 +162,11 @@ jobs:
162
162
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
163
163
- name : Add SSH private keys for submodule repositories
164
164
uses :
webfactory/[email protected]
165
- if : github.repository == 'element-hq/element-x-android'
165
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
166
166
with :
167
167
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
168
168
- name : Clone submodules
169
- if : github.repository == 'element-hq/element-x-android'
169
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
170
170
run : git submodule update --init --recursive
171
171
- name : Use JDK 17
172
172
uses : actions/setup-java@v4
@@ -202,11 +202,11 @@ jobs:
202
202
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
203
203
- name : Add SSH private keys for submodule repositories
204
204
uses :
webfactory/[email protected]
205
- if : github.repository == 'element-hq/element-x-android'
205
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
206
206
with :
207
207
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
208
208
- name : Clone submodules
209
- if : github.repository == 'element-hq/element-x-android'
209
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
210
210
run : git submodule update --init --recursive
211
211
- name : Use JDK 17
212
212
uses : actions/setup-java@v4
@@ -242,11 +242,11 @@ jobs:
242
242
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
243
243
- name : Add SSH private keys for submodule repositories
244
244
uses :
webfactory/[email protected]
245
- if : github.repository == 'element-hq/element-x-android'
245
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
246
246
with :
247
247
ssh-private-key : ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
248
248
- name : Clone submodules
249
- if : github.repository == 'element-hq/element-x-android'
249
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
250
250
run : git submodule update --init --recursive
251
251
- name : Use JDK 17
252
252
uses : actions/setup-java@v4
@@ -277,6 +277,7 @@ jobs:
277
277
name : Project Check Suite
278
278
runs-on : ubuntu-latest
279
279
needs : [konsist, lint, ktlint, detekt]
280
+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
280
281
steps :
281
282
- uses : actions/checkout@v4
282
283
with :
0 commit comments