Add check to run only if triggered from MicrosoftDocs repo

This commit is contained in:
David Strome 2025-03-26 13:48:07 -07:00
parent 2196ab50bf
commit 1f3ac852c7

View File

@ -13,7 +13,7 @@ on:
jobs: jobs:
download-payload: download-payload:
if: github.repository_visibility == 'public' if: github.repository_owner == 'MicrosoftDocs' && github.repository_visibility == 'public'
name: Download and extract payload artifact name: Download and extract payload artifact
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
with: with:
@ -24,7 +24,7 @@ jobs:
label-msft: label-msft:
name: Label Microsoft contributors name: Label Microsoft contributors
if: github.repository_visibility == 'public' if: github.repository_owner == 'MicrosoftDocs' && github.repository_visibility == 'public'
needs: [download-payload] needs: [download-payload]
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelMsftContributor.yml@workflows-prod uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelMsftContributor.yml@workflows-prod
with: with: