Skip to content

Commit f7750d5

Browse files
authored
Turn off CI for forks (#1345)
Follows Qiskit/qiskit#10078. I don't see a reason to run CI on forks by default.
1 parent 8cc20df commit f7750d5

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

.github/workflows/cron-staging.yml

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

77
jobs:
88
qiskit-main-tests:
9+
if: github.repository_owner == 'Qiskit-Extensions'
910
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
1011
runs-on: ${{ matrix.os }}
1112
strategy:
@@ -46,6 +47,7 @@ jobs:
4647
TEST_TIMEOUT: 120
4748
OMP_NUM_THREADS: 1
4849
docs:
50+
if: github.repository_owner == 'Qiskit-Extensions'
4951
name: docs
5052
runs-on: ubuntu-latest
5153
steps:

.github/workflows/docs.yml

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

88
jobs:
99
deploy:
10+
if: github.repository_owner == 'Qiskit-Extensions'
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v3

.github/workflows/docs_dev.yml

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

77
jobs:
88
deploy:
9+
if: github.repository_owner == 'Qiskit-Extensions'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v3

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212
jobs:
1313
tests:
14+
if: github.repository_owner == 'Qiskit-Extensions'
1415
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
1516
runs-on: ${{ matrix.os }}
1617
strategy:
@@ -62,6 +63,7 @@ jobs:
6263
run: stestr history remove all
6364

6465
lint:
66+
if: github.repository_owner == 'Qiskit-Extensions'
6567
name: lint
6668
runs-on: ubuntu-latest
6769
steps:
@@ -80,6 +82,7 @@ jobs:
8082
- name: Run lint
8183
run: tox -elint
8284
docs:
85+
if: github.repository_owner == 'Qiskit-Extensions'
8386
name: docs
8487
runs-on: ubuntu-latest
8588
steps:

.github/workflows/neko.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88
cancel-in-progress: true
99
jobs:
1010
neko:
11+
if: github.repository_owner == 'Qiskit-Extensions'
1112
name: Qiskit Neko Integration Tests
1213
runs-on: ubuntu-latest
1314
steps:

0 commit comments

Comments
 (0)