Skip to content

Commit a3c47f7

Browse files
committed
gha: only run on the main repo
Maybe this will screw up PRs though? I don't know, GHA has such poor control here :/ . See: https://github.com/orgs/community/discussions/9098
1 parent ade1378 commit a3c47f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
os: [ubuntu-latest, macos-latest]
1919
name: Cargo test
2020
runs-on: ${{ matrix.os }}
21+
if: "github.repository == 'graphql-rust/graphql-client'"
2122
steps:
2223
- name: Checkout sources
2324
uses: actions/checkout@v2
@@ -32,6 +33,7 @@ jobs:
3233
wasm_build:
3334
name: Cargo build for wasm
3435
runs-on: ubuntu-latest
36+
if: "github.repository == 'graphql-rust/graphql-client'"
3537
steps:
3638
- name: Checkout sources
3739
uses: actions/checkout@v2
@@ -48,6 +50,7 @@ jobs:
4850
lint:
4951
name: Rustfmt and Clippy
5052
runs-on: ubuntu-latest
53+
if: "github.repository == 'graphql-rust/graphql-client'"
5154
steps:
5255
- name: Checkout sources
5356
uses: actions/checkout@v2
@@ -65,6 +68,7 @@ jobs:
6568
prettier:
6669
name: Check prettier
6770
runs-on: ubuntu-latest
71+
if: "github.repository == 'graphql-rust/graphql-client'"
6872
steps:
6973
- name: Checkout sources
7074
uses: actions/checkout@v2

0 commit comments

Comments
 (0)