Skip to content

Commit 42fc05b

Browse files
Don't run scheduled GitHub actions on forks (microsoft#48693)
Co-authored-by: TypeScript Bot <[email protected]>
1 parent 06fb307 commit 42fc05b

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111

1212
# CodeQL runs on ubuntu-latest and windows-latest
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'microsoft/TypeScript'
1415

1516
steps:
1617
- name: Checkout repository

.github/workflows/ensure-related-repos-run-crons.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
if: github.repository == 'microsoft/TypeScript'
1718

1819
steps:
1920
- name: Configure git

.github/workflows/nightly.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'microsoft/TypeScript'
1415

1516
steps:
1617
- uses: actions/checkout@v2

.github/workflows/twoslash-repros.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
run:
2323
if: ${{ !github.event.label && !github.event.inputs.bisect_issue }}
2424
runs-on: ubuntu-latest
25+
if: github.repository == 'microsoft/TypeScript'
2526
steps:
2627
- name: Use node
2728
uses: actions/setup-node@v1

.github/workflows/update-package-lock.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
if: github.repository == 'microsoft/TypeScript'
1314

1415
steps:
1516
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)