Fix CI for forks (#3226)
* Try with a different condition for forks * Skip danger in forks, the fallback token won't let it write comments in PRs anyway
This commit is contained in:
committed by
GitHub
parent
6fd146a98a
commit
bbe1dc4952
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -40,11 +40,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@v0.9.0
|
||||
if: github.repository == 'element-hq/element-x-android'
|
||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }}
|
||||
- name: Clone submodules
|
||||
if: github.repository == 'element-hq/element-x-android'
|
||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
|
||||
run: git submodule update --init --recursive
|
||||
- name: ☕️ Use JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
|
||||
Reference in New Issue
Block a user