Skip to content

Commit 3d1c911

Browse files
chore(ci): only run for pushes and fork pull requests
1 parent 60673ab commit 3d1c911

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
name: lint
1919
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -42,6 +43,7 @@ jobs:
4243
timeout-minutes: 5
4344
name: build
4445
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
46+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4547
permissions:
4648
contents: read
4749
id-token: write
@@ -80,6 +82,7 @@ jobs:
8082
timeout-minutes: 10
8183
name: test
8284
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
85+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8386
steps:
8487
- uses: actions/checkout@v4
8588

0 commit comments

Comments
 (0)