File tree Expand file tree Collapse file tree 9 files changed +17
-22
lines changed Expand file tree Collapse file tree 9 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 1313
1414jobs :
1515 download-payload :
16- if : github.repository_visibility == 'public'
16+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'public'
1717 name : Download and extract payload artifact
1818 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
1919 with :
@@ -24,12 +24,12 @@ jobs:
2424
2525 label-msft :
2626 name : Label Microsoft contributors
27- if : github.repository_visibility == 'public'
27+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'public'
2828 needs : [download-payload]
2929 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelMsftContributor.yml@workflows-prod
3030 with :
3131 PayloadJson : ${{ needs.download-payload.outputs.WorkflowPayload }}
3232 secrets :
3333 AccessToken : ${{ secrets.GITHUB_TOKEN }}
3434 ClientId : ${{ secrets.M365_APP_CLIENT_ID }}
35- PrivateKey : ${{ secrets.M365_APP_PRIVATE_KEY }}
35+ PrivateKey : ${{ secrets.M365_APP_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 99
1010jobs :
1111 upload :
12+ if : github.repository_owner == 'MicrosoftDocs'
1213 runs-on : ubuntu-latest
1314
1415 steps :
2324 - uses : actions/upload-artifact@v4
2425 with :
2526 name : PayloadJson
26- path : pr/
27+ path : pr/
Original file line number Diff line number Diff line change 1111jobs :
1212
1313 build-status :
14+ if : github.repository_owner == 'MicrosoftDocs'
1415 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-BuildValidation.yml@workflows-prod
1516 with :
1617 PayloadJson : ${{ toJSON(github) }}
1718 secrets :
1819 AccessToken : ${{ secrets.GITHUB_TOKEN }}
19-
20-
21-
Original file line number Diff line number Diff line change 1212jobs :
1313
1414 live-merge :
15+ if : github.repository_owner == 'MicrosoftDocs'
1516 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-LiveMergeCheck.yml@workflows-prod
1617 with :
1718 PayloadJson : ${{ toJSON(github) }}
1819 secrets :
19- AccessToken : ${{ secrets.GITHUB_TOKEN }}
20-
21-
22-
20+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1212jobs :
1313
1414 file-count :
15+ if : github.repository_owner == 'MicrosoftDocs'
1516 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-PrFileCount.yml@workflows-prod
1617 with :
1718 PayloadJson : ${{ toJSON(github) }}
1819 secrets :
19- AccessToken : ${{ secrets.GITHUB_TOKEN }}
20-
21-
22-
20+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ on: [pull_request_target]
1010jobs :
1111
1212 protected-files :
13+ if : github.repository_owner == 'MicrosoftDocs'
1314 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ProtectedFiles.yml@workflows-prod
1415 with :
1516 PayloadJson : ${{ toJSON(github) }}
1617 secrets :
17- AccessToken : ${{ secrets.GITHUB_TOKEN }}
18-
19-
20-
18+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1111
1212jobs :
1313 stale :
14+ if : github.repository_owner == 'MicrosoftDocs'
1415 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-Stale.yml@workflows-prod
1516 with :
1617 RunDebug : false
Original file line number Diff line number Diff line change 1313jobs :
1414
1515 stale-branch :
16+ if : github.repository_owner == 'MicrosoftDocs'
1617 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
1718 with :
1819 PayloadJson : ${{ toJSON(github) }}
2223 ]'
2324 ReportOnly : true
2425 secrets :
25- AccessToken : ${{ secrets.GITHUB_TOKEN }}
26+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1111jobs :
1212
1313 tier-mgmt :
14- if : github.repository_visibility == 'private'
14+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'private'
1515 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-TierManagement.yml@workflows-prod
1616 with :
1717 PayloadJson : ${{ toJSON(github) }}
1818 EnableWriteSignOff : 1
1919 EnableReadOnlySignoff : 1
2020 secrets :
21- AccessToken : ${{ secrets.GITHUB_TOKEN }}
21+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments