Skip to content

Commit

Permalink
gha: only run on the main repo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mathstuf committed Oct 12, 2023
1 parent ade1378 commit a3c47f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
os: [ubuntu-latest, macos-latest]
name: Cargo test
runs-on: ${{ matrix.os }}
if: "github.repository == 'graphql-rust/graphql-client'"
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -32,6 +33,7 @@ jobs:
wasm_build:
name: Cargo build for wasm
runs-on: ubuntu-latest
if: "github.repository == 'graphql-rust/graphql-client'"
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -48,6 +50,7 @@ jobs:
lint:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
if: "github.repository == 'graphql-rust/graphql-client'"
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -65,6 +68,7 @@ jobs:
prettier:
name: Check prettier
runs-on: ubuntu-latest
if: "github.repository == 'graphql-rust/graphql-client'"
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down

0 comments on commit a3c47f7

Please sign in to comment.