File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "AutoIssueAssign" : {
3+ "ExcludedUserList" : [" user1" , " user2" ]
4+ },
5+ "AutoLabelAssign" : {
6+ "AutoAssignUsers" : 1 ,
7+ "AutoAssignReviewers" : 1 ,
8+ "AutoLabel" : 1 ,
9+ "ExcludedUserList" : [" user1" , " user2" ],
10+ "ExcludedBranchList" : [" branch1" , " branch2" ]
11+ },
12+ "AutoPublish" : {
13+ "EnableAutoPublish" : true ,
14+ "EnableAutoMerge" : true
15+ },
16+ "Stale" : {
17+ "RunDebug" : false
18+ },
19+ "StaleBranch" : {
20+ "RepoBranchSkipList" : [" ExampleBranch1" , " ExampleBranch2" ],
21+ "ReportOnly" : false
22+ },
23+ "TierManagement" : {
24+ "EnableWriteSignOff" : 1 ,
25+ "EnableReadOnlySignoff" : 1
26+ }
27+ }
Original file line number Diff line number Diff line change 1414
1515jobs :
1616
17+ config :
18+ if : github.repository_owner == 'MicrosoftDocs' && contains(github.event.repository.topics, 'build')
19+ runs-on : ubuntu-latest
20+ outputs :
21+ EnableAutoPublish : ${{ steps.read.outputs.EnableAutoPublish }}
22+ EnableAutoMerge : ${{ steps.read.outputs.EnableAutoMerge }}
23+ steps :
24+ - uses : actions/checkout@v4
25+ with :
26+ sparse-checkout : .github/workflow-config.json
27+ sparse-checkout-cone-mode : false
28+ - id : read
29+ shell : pwsh
30+ run : |
31+ $Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoPublish
32+ "EnableAutoPublish=$("$($Config.EnableAutoPublish)".ToLower())" >> $Env:GITHUB_OUTPUT
33+ "EnableAutoMerge=$("$($Config.EnableAutoMerge)".ToLower())" >> $Env:GITHUB_OUTPUT
34+
1735 auto-publish :
1836 if : github.repository_owner == 'MicrosoftDocs' && contains(github.event.repository.topics, 'build')
37+ needs : config
1938 uses : MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoPublishV2.yml@workflows-prod
2039 with :
2140 PayloadJson : ${{ toJSON(github) }}
22- EnableAutoPublish : true
23- EnableAutoMerge : true
24-
41+ EnableAutoPublish : ${{ fromJSON(needs.config.outputs.EnableAutoPublish) }}
42+ EnableAutoMerge : ${{ fromJSON(needs.config.outputs.EnableAutoMerge) }}
2543 secrets :
2644 AccessToken : ${{ secrets.GITHUB_TOKEN }}
2745 PrivateKey : ${{ secrets.M365_APP_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments