Skip to content

Commit 0e909d7

Browse files
authored
Merge pull request #469 from MicrosoftDocs/dstrome-workflowupdate2
Add check to run only if triggered from MicrosoftDocs repo (MsftContributor)
2 parents e23f7b8 + 38db2e5 commit 0e909d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/AutoLabelMsftContributor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
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 }}

0 commit comments

Comments
 (0)