Skip to content

Commit cc28756

Browse files
authored
Merge pull request #13771 from MicrosoftDocs/workflows-test
Add check to run only if triggered from MicrosoftDocs repo
2 parents 0ec4a20 + a1962ae commit cc28756

10 files changed

+11
-2
lines changed

.github/workflows/Shared-AutoLabelAssign.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929
jobs:
3030
build:
3131
name: Run Script
32+
if: github.repository_owner == 'MicrosoftDocs'
3233
runs-on: ubuntu-latest
3334
steps:
3435
- name: Script

.github/workflows/Shared-AutoLabelMsftContributor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
jobs:
2121
build:
2222
name: Run Script
23+
if: github.repository_owner == 'MicrosoftDocs'
2324
runs-on: ubuntu-latest
2425
steps:
2526
- name: Script

.github/workflows/Shared-BuildValidation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818
build:
1919
name: Run Script
20+
if: github.repository_owner == 'MicrosoftDocs'
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: Script

.github/workflows/Shared-ExtractPayload.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
jobs:
2525
build:
2626
name: Run Script
27+
if: github.repository_owner == 'MicrosoftDocs'
2728
runs-on: ubuntu-latest
2829
outputs:
2930
JobPayload: ${{ steps.get-payload.outputs.WorkflowPayload }}

.github/workflows/Shared-LiveMergeCheck.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
jobs:
1919
build:
2020
name: Run Script
21+
if: github.repository_owner == 'MicrosoftDocs'
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Script

.github/workflows/Shared-PrFileCount.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
jobs:
1919
build:
2020
name: Run Script
21+
if: github.repository_owner == 'MicrosoftDocs'
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Script

.github/workflows/Shared-ProtectedFiles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
jobs:
1919
build:
2020
name: Run Script
21+
if: github.repository_owner == 'MicrosoftDocs'
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Script

.github/workflows/Shared-Stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
stale-private:
2222
name: Stale check - private repos
2323
runs-on: ubuntu-latest
24-
if: inputs.RepoVisibility == 'private'
24+
if: github.repository_owner == 'MicrosoftDocs' && inputs.RepoVisibility == 'private'
2525
steps:
2626

2727
# - name: Get selected month
@@ -117,7 +117,7 @@ jobs:
117117
# stale-public:
118118
# name: Stale check - public repos
119119
# runs-on: ubuntu-latest
120-
# if: inputs.RepoVisibility == 'public'
120+
# if: github.repository_owner == 'MicrosoftDocs' && inputs.RepoVisibility == 'public'
121121
# steps:
122122
# - uses: actions/stale@v9
123123
# with:

.github/workflows/Shared-StaleBranch.yml

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

2424
stale-branch:
2525
name: Stale branch removal
26+
if: github.repository_owner == 'MicrosoftDocs'
2627
runs-on: ubuntu-latest
2728
steps:
2829
- name: Process branches

.github/workflows/Shared-TierManagement.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
jobs:
2424
build:
2525
name: Run Script
26+
if: github.repository_owner == 'MicrosoftDocs'
2627
runs-on: ubuntu-latest
2728
steps:
2829
- name: Script

0 commit comments

Comments
 (0)