Skip to content

Commit 8194efb

Browse files
authored
Don't run the Insiders Build workflow in forks (#13733)
1 parent 761242a commit 8194efb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/insiders.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
build-vsix:
2424
name: Build VSIX
2525
runs-on: ubuntu-latest
26+
if: github.repository == 'microsoft/vscode-python'
2627
steps:
2728
- name: Checkout
2829
uses: actions/checkout@v2
@@ -63,6 +64,7 @@ jobs:
6364
lint:
6465
name: Lint
6566
runs-on: ubuntu-latest
67+
if: github.repository == 'microsoft/vscode-python'
6668
steps:
6769
- name: Checkout
6870
uses: actions/checkout@v2
@@ -119,6 +121,7 @@ jobs:
119121
name: Tests
120122
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
121123
runs-on: ${{ matrix.os }}
124+
if: github.repository == 'microsoft/vscode-python'
122125
strategy:
123126
fail-fast: false
124127
matrix:
@@ -347,6 +350,7 @@ jobs:
347350
name: Smoke tests
348351
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
349352
runs-on: ${{ matrix.os }}
353+
if: github.repository == 'microsoft/vscode-python'
350354
needs: [build-vsix]
351355
strategy:
352356
fail-fast: false

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
build-vsix:
2525
name: Build VSIX
2626
runs-on: ubuntu-latest
27+
if: github.repository == 'microsoft/vscode-python'
2728
steps:
2829
- name: Checkout
2930
uses: actions/checkout@v2
@@ -66,6 +67,7 @@ jobs:
6667
# will be caught when we merge back into 'main'.
6768
name: Lint
6869
runs-on: ubuntu-latest
70+
if: github.repository == 'microsoft/vscode-python'
6971
steps:
7072
- name: Checkout
7173
uses: actions/checkout@v2
@@ -99,6 +101,7 @@ jobs:
99101
name: Tests
100102
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
101103
runs-on: ${{ matrix.os }}
104+
if: github.repository == 'microsoft/vscode-python'
102105
strategy:
103106
fail-fast: false
104107
matrix:
@@ -319,6 +322,7 @@ jobs:
319322
name: Smoke tests
320323
# The value of runs-on is the OS of the current job (specified in the strategy matrix below) instead of being hardcoded.
321324
runs-on: ${{ matrix.os }}
325+
if: github.repository == 'microsoft/vscode-python'
322326
needs: [build-vsix]
323327
strategy:
324328
fail-fast: false

0 commit comments

Comments
 (0)