File tree 2 files changed +32
-1
lines changed
2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ import { commitStartRelease } from './text.ts';
24
24
async function handleSpecFiles ( spec : SpecsToPush , tempGitDir : string ) : Promise < void > {
25
25
const output = toAbsolutePath ( `${ tempGitDir } /${ spec . output } ` ) ;
26
26
27
+ if ( ! ( await exists ( output ) ) ) {
28
+ await fsp . mkdir ( output , { recursive : true } ) ;
29
+ }
30
+
27
31
if ( spec . includeSnippets ) {
28
32
await run ( `cp ${ toAbsolutePath ( 'docs/bundled/*-snippets.json' ) } ${ output } ` ) ;
29
33
}
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ export type RepositoryConfiguration = {
50
50
tasks : Array < RepositoryTask > ;
51
51
} ;
52
52
53
- export const pushToRepositoryConfiguration : { [ k in 'AlgoliaWeb' | 'doc' | 'mcp-node' ] : RepositoryConfiguration } = {
53
+ export const pushToRepositoryConfiguration : {
54
+ [ k in 'AlgoliaWeb' | 'doc' | 'mcp-node' | 'docs-new' ] : RepositoryConfiguration ;
55
+ } = {
54
56
AlgoliaWeb : {
55
57
baseBranch : 'develop' ,
56
58
tasks : [
@@ -103,6 +105,31 @@ export const pushToRepositoryConfiguration: { [k in 'AlgoliaWeb' | 'doc' | 'mcp-
103
105
} ,
104
106
] ,
105
107
} ,
108
+ 'docs-new' : {
109
+ baseBranch : 'main' ,
110
+ tasks : [
111
+ {
112
+ prBranch : 'feat/automated-update-for-specs' ,
113
+ commitMessage : 'feat: update specs and supported versions' ,
114
+ files : {
115
+ type : 'specs' ,
116
+ ext : 'yml' ,
117
+ output : 'specs' ,
118
+ includeSnippets : true ,
119
+ includeSLA : true ,
120
+ placeholderVariables : { 'openapi: 3.0.2' : 'openapi: 3.1.0' } ,
121
+ } ,
122
+ } ,
123
+ {
124
+ prBranch : 'feat/automated-update-for-guides' ,
125
+ commitMessage : 'feat: update generated guides' ,
126
+ files : {
127
+ type : 'guides' ,
128
+ output : 'specs/guides.json' ,
129
+ } ,
130
+ } ,
131
+ ] ,
132
+ } ,
106
133
'mcp-node' : {
107
134
baseBranch : 'main' ,
108
135
tasks : [
You can’t perform that action at this time.
0 commit comments