Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/AutoLabelAssign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
download-payload:
name: Download and extract payload artifact
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
with:
WorkflowId: ${{ github.event.workflow_run.id }}
Expand All @@ -23,6 +24,7 @@ jobs:

label-assign:
name: Run assign and label
if: github.repository_owner == 'MicrosoftDocs'
needs: [download-payload]
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
with:
Expand All @@ -32,10 +34,4 @@ jobs:
ExcludedUserList: '["user1", "user2"]'
ExcludedBranchList: '["branch1", "branch2"]'
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}






AccessToken: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/AutoLabelMsftContributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -24,12 +24,12 @@ 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:
PayloadJson: ${{ needs.download-payload.outputs.WorkflowPayload }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
3 changes: 2 additions & 1 deletion .github/workflows/BackgroundTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
upload:
if: github.repository_owner == 'MicrosoftDocs'
runs-on: ubuntu-latest

steps:
Expand All @@ -23,4 +24,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: PayloadJson
path: pr/
path: pr/
4 changes: 1 addition & 3 deletions .github/workflows/BuildValidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ on:
jobs:

build-status:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-BuildValidation.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}



6 changes: 2 additions & 4 deletions .github/workflows/LiveMergeCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ on:
jobs:

live-merge:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-LiveMergeCheck.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}



AccessToken: ${{ secrets.GITHUB_TOKEN }}
6 changes: 2 additions & 4 deletions .github/workflows/PrFileCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ on:
jobs:

file-count:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-PrFileCount.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}



AccessToken: ${{ secrets.GITHUB_TOKEN }}
6 changes: 2 additions & 4 deletions .github/workflows/ProtectedFiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ on: [pull_request_target]
jobs:

protected-files:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ProtectedFiles.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}



AccessToken: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/Stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
stale:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-Stale.yml@workflows-prod
with:
RunDebug: false
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/StaleBranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:

stale-branch:
if: github.repository_owner == 'MicrosoftDocs'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
Expand All @@ -22,4 +23,4 @@ jobs:
]'
ReportOnly: true
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
AccessToken: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/TierManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
jobs:

tier-mgmt:
if: github.repository_visibility == 'private'
if: github.repository_owner == 'MicrosoftDocs' && github.repository_visibility == 'private'
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-TierManagement.yml@workflows-prod
with:
PayloadJson: ${{ toJSON(github) }}
EnableWriteSignOff: 1
EnableReadOnlySignoff: 1
secrets:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
AccessToken: ${{ secrets.GITHUB_TOKEN }}
Loading