Skip to content

Commit 7d3c447

Browse files
committed
Do not clone submodules in forks.
1 parent 5430d79 commit 7d3c447

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/danger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
1515
- name: Clone submodules
16+
if: github.repository == 'element-hq/element-x-android'
1617
run: git submodule update --init --recursive
1718
- run: |
1819
npm install --save-dev @babel/plugin-transform-flow-strip-types

.github/workflows/quality.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
2525
- name: Clone submodules
26+
if: github.repository == 'element-hq/element-x-android'
2627
run: git submodule update --init --recursive
2728
- name: Run code quality check suite
2829
run: ./tools/check/check_code_quality.sh
@@ -79,6 +80,7 @@ jobs:
7980
with:
8081
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
8182
- name: Clone submodules
83+
if: github.repository == 'element-hq/element-x-android'
8284
run: git submodule update --init --recursive
8385
- name: Use JDK 17
8486
uses: actions/setup-java@v4
@@ -117,6 +119,7 @@ jobs:
117119
with:
118120
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
119121
- name: Clone submodules
122+
if: github.repository == 'element-hq/element-x-android'
120123
run: git submodule update --init --recursive
121124
- name: Use JDK 17
122125
uses: actions/setup-java@v4
@@ -159,6 +162,7 @@ jobs:
159162
with:
160163
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
161164
- name: Clone submodules
165+
if: github.repository == 'element-hq/element-x-android'
162166
run: git submodule update --init --recursive
163167
- name: Use JDK 17
164168
uses: actions/setup-java@v4
@@ -197,6 +201,7 @@ jobs:
197201
with:
198202
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
199203
- name: Clone submodules
204+
if: github.repository == 'element-hq/element-x-android'
200205
run: git submodule update --init --recursive
201206
- name: Use JDK 17
202207
uses: actions/setup-java@v4
@@ -235,6 +240,7 @@ jobs:
235240
with:
236241
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
237242
- name: Clone submodules
243+
if: github.repository == 'element-hq/element-x-android'
238244
run: git submodule update --init --recursive
239245
- name: Use JDK 17
240246
uses: actions/setup-java@v4

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
4545
- name: Clone submodules
46+
if: github.repository == 'element-hq/element-x-android'
4647
run: git submodule update --init --recursive
4748
- name: ☕️ Use JDK 17
4849
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)