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:
Jorge Martin Espinosa
2024-07-19 17:46:56 +02:00
committed by GitHub
parent 6fd146a98a
commit bbe1dc4952
9 changed files with 25 additions and 23 deletions

View File

@@ -9,7 +9,7 @@ jobs:
generate-github-pages:
runs-on: ubuntu-latest
# Skip in forks
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' }}
steps:
- name: ⏬ Checkout with LFS
uses: nschloe/action-cached-lfs-checkout@v1.2.2