Skip to content

Commit cb6b8ea

Browse files
authored
Disable CI jobs in forks (#3471)
1 parent da20349 commit cb6b8ea

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

.github/workflows/close-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
jobs:
1313
close:
1414
runs-on: ubuntu-latest
15+
if: github.repository == 'microsoft/TypeScript-Website'
1516
steps:
1617
- uses: Azure/static-web-apps-deploy@v1
1718
with:

.github/workflows/deploy-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020
jobs:
2121
deploy:
2222
runs-on: ubuntu-latest
23+
if: github.repository == 'microsoft/TypeScript-Website'
2324
steps:
2425
- name: Get PR/workflow run info
2526
id: get-info

.github/workflows/deploy-prod-static.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ concurrency:
2424
jobs:
2525
build:
2626
runs-on: ubuntu-latest
27+
if: github.repository == 'microsoft/TypeScript-Website'
2728

2829
steps:
2930
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -64,6 +65,7 @@ jobs:
6465
url: ${{ steps.deployment.outputs.page_url }}
6566
runs-on: ubuntu-latest
6667
needs: build
68+
if: github.repository == 'microsoft/TypeScript-Website'
6769
steps:
6870
- name: Deploy to GitHub Pages
6971
id: deployment

.github/workflows/keepalive.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
jobs:
77
keepalive:
88
runs-on: ubuntu-latest
9+
if: github.repository == 'microsoft/TypeScript-Website'
910

1011
permissions:
1112
contents: write

.github/workflows/publish-packages.yml

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

1819
steps:
1920
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

0 commit comments

Comments
 (0)