Tools: Trying to prevent CI from running on forks

pull/8001/head
Laurent Cozic 2023-03-30 22:57:58 +01:00
parent a481bf1b53
commit 403d770b1d
1 changed files with 2 additions and 4 deletions

View File

@ -13,10 +13,9 @@ jobs:
concurrent_skipping: 'same_content_newer'
Main:
if: github.repository == 'laurent22/joplin'
needs: pre_job
# We always process server or desktop release tags, because they also publish the release
if: needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/server-v') || startsWith(github.ref, 'refs/tags/v')
if: github.repository == 'laurent22/joplin' && (needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/server-v') || startsWith(github.ref, 'refs/tags/v'))
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -130,9 +129,8 @@ jobs:
yarn install && cd packages/app-desktop && yarn run dist --publish=never
ServerDockerImage:
if: github.repository == 'laurent22/joplin'
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
if: github.repository == 'laurent22/joplin' && needs.pre_job.outputs.should_skip != 'true'
runs-on: ${{ matrix.os }}
strategy:
matrix: