File tree 10 files changed +20
-29
lines changed
10 files changed +20
-29
lines changed Original file line number Diff line number Diff line change 14
14
jobs :
15
15
download-payload :
16
16
name : Download and extract payload artifact
17
+ if : github.repository_owner == 'MicrosoftDocs'
17
18
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
18
19
with :
19
20
WorkflowId : ${{ github.event.workflow_run.id }}
23
24
24
25
label-assign :
25
26
name : Run assign and label
27
+ if : github.repository_owner == 'MicrosoftDocs'
26
28
needs : [download-payload]
27
29
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
28
30
with :
32
34
ExcludedUserList : ' ["user1", "user2"]'
33
35
ExcludedBranchList : ' ["branch1", "branch2"]'
34
36
secrets :
35
- AccessToken : ${{ secrets.GITHUB_TOKEN }}
36
-
37
-
38
-
39
-
40
-
41
-
37
+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
download-payload :
16
- if : github.repository_visibility == 'public'
16
+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'public'
17
17
name : Download and extract payload artifact
18
18
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
19
19
with :
@@ -24,12 +24,12 @@ jobs:
24
24
25
25
label-msft :
26
26
name : Label Microsoft contributors
27
- if : github.repository_visibility == 'public'
27
+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'public'
28
28
needs : [download-payload]
29
29
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelMsftContributor.yml@workflows-prod
30
30
with :
31
31
PayloadJson : ${{ needs.download-payload.outputs.WorkflowPayload }}
32
32
secrets :
33
33
AccessToken : ${{ secrets.GITHUB_TOKEN }}
34
34
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 9
9
10
10
jobs :
11
11
upload :
12
+ if : github.repository_owner == 'MicrosoftDocs'
12
13
runs-on : ubuntu-latest
13
14
14
15
steps :
23
24
- uses : actions/upload-artifact@v4
24
25
with :
25
26
name : PayloadJson
26
- path : pr/
27
+ path : pr/
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
13
13
build-status :
14
+ if : github.repository_owner == 'MicrosoftDocs'
14
15
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-BuildValidation.yml@workflows-prod
15
16
with :
16
17
PayloadJson : ${{ toJSON(github) }}
17
18
secrets :
18
19
AccessToken : ${{ secrets.GITHUB_TOKEN }}
19
-
20
-
21
-
Original file line number Diff line number Diff line change 12
12
jobs :
13
13
14
14
live-merge :
15
+ if : github.repository_owner == 'MicrosoftDocs'
15
16
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-LiveMergeCheck.yml@workflows-prod
16
17
with :
17
18
PayloadJson : ${{ toJSON(github) }}
18
19
secrets :
19
- AccessToken : ${{ secrets.GITHUB_TOKEN }}
20
-
21
-
22
-
20
+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
jobs :
13
13
14
14
file-count :
15
+ if : github.repository_owner == 'MicrosoftDocs'
15
16
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-PrFileCount.yml@workflows-prod
16
17
with :
17
18
PayloadJson : ${{ toJSON(github) }}
18
19
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]
10
10
jobs :
11
11
12
12
protected-files :
13
+ if : github.repository_owner == 'MicrosoftDocs'
13
14
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ProtectedFiles.yml@workflows-prod
14
15
with :
15
16
PayloadJson : ${{ toJSON(github) }}
16
17
secrets :
17
- AccessToken : ${{ secrets.GITHUB_TOKEN }}
18
-
19
-
20
-
18
+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
stale :
14
+ if : github.repository_owner == 'MicrosoftDocs'
14
15
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-Stale.yml@workflows-prod
15
16
with :
16
17
RunDebug : false
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
15
15
stale-branch :
16
+ if : github.repository_owner == 'MicrosoftDocs'
16
17
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
17
18
with :
18
19
PayloadJson : ${{ toJSON(github) }}
22
23
]'
23
24
ReportOnly : true
24
25
secrets :
25
- AccessToken : ${{ secrets.GITHUB_TOKEN }}
26
+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
13
13
tier-mgmt :
14
- if : github.repository_visibility == 'private'
14
+ if : github.repository_owner == 'MicrosoftDocs' && github. repository_visibility == 'private'
15
15
uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-TierManagement.yml@workflows-prod
16
16
with :
17
17
PayloadJson : ${{ toJSON(github) }}
18
18
EnableWriteSignOff : 1
19
19
EnableReadOnlySignoff : 1
20
20
secrets :
21
- AccessToken : ${{ secrets.GITHUB_TOKEN }}
21
+ AccessToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments