mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 05:17:22 +00:00
Add check to run only if triggered from MicrosoftDocs repo
This commit is contained in:
parent
2196ab50bf
commit
1f3ac852c7
@ -13,7 +13,7 @@ on:
|
||||
|
||||
jobs:
|
||||
download-payload:
|
||||
if: github.repository_visibility == 'public'
|
||||
if: github.repository_owner == 'MicrosoftDocs' && github.repository_visibility == 'public'
|
||||
name: Download and extract payload artifact
|
||||
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
|
||||
with:
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
label-msft:
|
||||
name: Label Microsoft contributors
|
||||
if: github.repository_visibility == 'public'
|
||||
if: github.repository_owner == 'MicrosoftDocs' && github.repository_visibility == 'public'
|
||||
needs: [download-payload]
|
||||
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelMsftContributor.yml@workflows-prod
|
||||
with:
|
||||
@ -32,4 +32,4 @@ jobs:
|
||||
secrets:
|
||||
AccessToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
|
||||
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
|
||||
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
|
Loading…
x
Reference in New Issue
Block a user