Skip to content

Commit a481bf1

Browse files
committed
Tools: Trying to prevent CI from running on forks
1 parent 0d32570 commit a481bf1

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.github/workflows/build-android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on: [push, pull_request]
66

77
jobs:
88
pre_job:
9+
if: github.repository == 'laurent22/joplin'
910
runs-on: ubuntu-latest
1011
outputs:
1112
should_skip: ${{ steps.skip_check.outputs.should_skip }}
@@ -16,6 +17,7 @@ jobs:
1617
concurrent_skipping: 'same_content_newer'
1718

1819
BuildAndroidDebug:
20+
if: github.repository == 'laurent22/joplin'
1921
needs: pre_job
2022
if: needs.pre_job.outputs.should_skip != 'true'
2123
runs-on: ubuntu-latest

.github/workflows/cla.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
CLAAssistant:
10+
if: github.repository == 'laurent22/joplin'
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: "CLA Assistant"

.github/workflows/close-stale-issues.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ permissions:
66
issues: write
77
jobs:
88
ProcessStaleIssues:
9+
if: github.repository == 'laurent22/joplin'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/stale@v4

.github/workflows/github-actions-main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Joplin Continuous Integration
22
on: [push, pull_request]
33
jobs:
44
pre_job:
5+
if: github.repository == 'laurent22/joplin'
56
runs-on: ubuntu-latest
67
outputs:
78
should_skip: ${{ steps.skip_check.outputs.should_skip }}
@@ -12,6 +13,7 @@ jobs:
1213
concurrent_skipping: 'same_content_newer'
1314

1415
Main:
16+
if: github.repository == 'laurent22/joplin'
1517
needs: pre_job
1618
# We always process server or desktop release tags, because they also publish the release
1719
if: needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/server-v') || startsWith(github.ref, 'refs/tags/v')
@@ -128,6 +130,7 @@ jobs:
128130
yarn install && cd packages/app-desktop && yarn run dist --publish=never
129131
130132
ServerDockerImage:
133+
if: github.repository == 'laurent22/joplin'
131134
needs: pre_job
132135
if: needs.pre_job.outputs.should_skip != 'true'
133136
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)