Skip to content

Commit 99e9ac7

Browse files
authored
Fix codegen script for 8.8 (#1983)
1 parent 6f0fc77 commit 99e9ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/make.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ async function bump (args) {
8989
const pipeline = await readFile(join(import.meta.url, '..', '.buildkite', 'pipeline.yml'))
9090
await writeFile(
9191
join(import.meta.url, '..', '.buildkite', 'pipeline.yml'),
92-
pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: - ${cleanVersion}-SNAPSHOT`), // eslint-disable-line
92+
pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: ${cleanVersion}-SNAPSHOT`), // eslint-disable-line
9393
'utf8'
9494
)
9595
}
9696

9797
// this command can only be executed locally for now
9898
async function codegen (args) {
9999
assert(args.length === 1, 'Codegen task expects one parameter')
100-
const [version] = args
100+
const version = args[0].toString()
101101

102102
const clientGeneratorPath = join(import.meta.url, '..', '..', 'elastic-client-generator-js')
103103
const isGeneratorCloned = await $`[[ -d ${clientGeneratorPath} ]]`.exitCode === 0

0 commit comments

Comments
 (0)