GH-86 - Dynamically set the GitVersion output properties
This commit is contained in:
@@ -41,7 +41,7 @@ export async function run() {
|
||||
|
||||
const result = await gitVersionTool.run(settings)
|
||||
const { stdout } = result
|
||||
const jsonOutput = stdout.substr(stdout.indexOf('{'))
|
||||
const jsonOutput = stdout.substring(stdout.indexOf('{'), stdout.indexOf('}') + 1)
|
||||
|
||||
const gitversion = JSON.parse(jsonOutput) as GitVersionOutput
|
||||
gitVersionTool.writeGitVersionToAgent(gitversion)
|
||||
|
||||
Reference in New Issue
Block a user