From 403d770b1d627f24cab6126f3dc87200cb70f3e2 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 30 Mar 2023 22:57:58 +0100 Subject: [PATCH] Tools: Trying to prevent CI from running on forks --- .github/workflows/github-actions-main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-main.yml b/.github/workflows/github-actions-main.yml index 107c19f2d..32fd6a286 100644 --- a/.github/workflows/github-actions-main.yml +++ b/.github/workflows/github-actions-main.yml @@ -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: