Disable cron jobs and private SSH key jobs in forks (#6821)

* Try disabling cron jobs in forks

* Try fixing quality checks

* Try fixing tests and enterprise builds

* Stop using the ssh private key in more quality checks

* Try disabling codecov if there is no token
This commit is contained in:
Jorge Martin Espinosa
2026-05-27 17:26:14 +02:00
committed by GitHub
parent 1e00353f29
commit ab4b11b9f0
9 changed files with 27 additions and 22 deletions
+5 -2
View File
@@ -56,11 +56,11 @@ jobs:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
- name: Add SSH private keys for submodule repositories
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
if: ${{ github.event.repository.fork != true }}
with:
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
- name: Clone submodules
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
if: ${{ github.event.repository.fork != true }}
run: git submodule update --init --recursive
- name: ☕️ Use JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
@@ -109,6 +109,9 @@ jobs:
# https://github.com/codecov/codecov-action
- name: ☂️ Upload coverage reports to codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
env:
HAS_TOKEN: ${{ secrets.CODECOV_TOKEN != ''}}
if: ${{ env.HAS_TOKEN == 'true' }}
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}