Skip to content

Commit 8f7f92e

Browse files
authored
Merge pull request #2726 from Azure/autogenerate
Merge Autogenerate
2 parents b0c85ae + 2b17dda commit 8f7f92e

File tree

9 files changed

+13711
-243
lines changed

9 files changed

+13711
-243
lines changed

.github/workflows/generate-schemas-batch.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Generate Schemas batch
22

33
on:
4+
schedule:
5+
- cron: '0 1 * * 3'
46
workflow_dispatch:
57
inputs:
68
api_specs_ref:
@@ -202,9 +204,10 @@ jobs:
202204
committer: GitHub <[email protected]>
203205
author: ${{ env.AUTHOR }} <${{ env.AUTHOR_EMAIL }}>
204206
signoff: false
205-
branch: ${{ env.AUTOGENERATE_BRANCH_NAME }}_ltst
207+
branch: main
206208
branch-suffix: short-commit-hash
207209
delete-branch: true
210+
token: ${{ secrets.GITHUB_TOKEN }}
208211
title: |
209212
Update Generated Schemas ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}
210213
body: |
@@ -218,5 +221,5 @@ jobs:
218221
Update Generated Schemas ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}
219222
220223
Generate schemas for ${{ steps.get_swagger_gh_uri.outputs.gh_uri }}
221-
labels: ${{ env.AUTOGENERATE_BRANCH_NAME }}
224+
labels: automerge
222225
draft: false

generator/autogenlist.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { postProcessor as costManagementPostProcessor } from './processors/Micro
1414
import { postProcessor as providerHubPostProcessor } from './processors/Microsoft.ProviderHub';
1515
import { postProcessor as mediaPostProcessor } from './processors/Microsoft.Media';
1616
import { postProcessor as networkPostProcessor } from './processors/Microsoft.Network';
17+
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
1718
import { lowerCaseEquals } from './utils';
1819

1920
// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -1101,6 +1102,11 @@ const autoGenList: AutoGenConfig[] = [
11011102
namespace: 'Microsoft.Network',
11021103
suffix: 'DnsResolver',
11031104
},
1105+
{
1106+
basePath: 'azurestackhci/resource-manager',
1107+
namespace: 'Microsoft.AzureStackHCI',
1108+
postProcessor: azureStackHciPostProcessor
1109+
},
11041110
];
11051111

11061112
export function findAutogenEntries(basePath: string): AutoGenConfig[] {

0 commit comments

Comments
 (0)