1212 - completed
1313
1414jobs :
15+ config :
16+ if : github.repository_owner == 'MicrosoftDocs'
17+ runs-on : ubuntu-latest
18+ outputs :
19+ AutoAssignUsers : ${{ steps.read.outputs.AutoAssignUsers }}
20+ AutoAssignReviewers : ${{ steps.read.outputs.AutoAssignReviewers }}
21+ AutoLabel : ${{ steps.read.outputs.AutoLabel }}
22+ ExcludedUserList : ${{ steps.read.outputs.ExcludedUserList }}
23+ ExcludedBranchList : ${{ steps.read.outputs.ExcludedBranchList }}
24+ steps :
25+ - uses : actions/checkout@v5
26+ with :
27+ sparse-checkout : .github/workflow-config.json
28+ sparse-checkout-cone-mode : false
29+ - id : read
30+ shell : pwsh
31+ run : |
32+ $Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoLabelAssign
33+ "AutoAssignUsers=$($Config.AutoAssignUsers)" >> $Env:GITHUB_OUTPUT
34+ "AutoAssignReviewers=$($Config.AutoAssignReviewers)" >> $Env:GITHUB_OUTPUT
35+ "AutoLabel=$($Config.AutoLabel)" >> $Env:GITHUB_OUTPUT
36+ "ExcludedUserList=$($Config.ExcludedUserList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
37+ "ExcludedBranchList=$($Config.ExcludedBranchList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
38+
1539 download-payload :
1640 name : Download and extract payload artifact
1741 if : github.repository_owner == 'MicrosoftDocs'
@@ -25,16 +49,18 @@ jobs:
2549 label-assign :
2650 name : Run assign and label
2751 if : github.repository_owner == 'MicrosoftDocs'
28- needs : [download-payload]
29- uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
52+ needs : [config, download-payload]
53+ uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-test
3054 with :
3155 PayloadJson : ${{ needs.download-payload.outputs.WorkflowPayload }}
32- AutoAssignUsers : 1
33- AutoAssignReviewers : 1
34- AutoLabel : 1
35- ExcludedUserList : ' ["user1", "user2"] '
36- ExcludedBranchList : ' ["branch1", "branch2"] '
56+ AutoAssignUsers : ${{ fromJSON(needs.config.outputs.AutoAssignUsers) }}
57+ AutoAssignReviewers : ${{ fromJSON(needs.config.outputs.AutoAssignReviewers) }}
58+ AutoLabel : ${{ fromJSON(needs.config.outputs.AutoLabel) }}
59+ ExcludedUserList : ${{ needs.config.outputs.ExcludedUserList }}
60+ ExcludedBranchList : ${{ needs.config.outputs.ExcludedBranchList }}
3761 secrets :
3862 AccessToken : ${{ secrets.GITHUB_TOKEN }}
3963 PrivateKey : ${{ secrets.M365_APP_PRIVATE_KEY }}
40- ClientId : ${{ secrets.M365_APP_CLIENT_ID }}
64+ ClientId : ${{ secrets.M365_APP_CLIENT_ID }}
65+
66+
0 commit comments