JSON structure fixes

This commit is contained in:
Jyotsna 2020-11-23 14:50:29 +05:30
parent ba95de9cac
commit d953c709a5
2 changed files with 6 additions and 6 deletions

View File

@ -38,9 +38,9 @@ function getWorkflowAnnotationsJson(lastSuccessRunSha, workflowFilePath, filePat
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
+ `'branch': '${process.env.GITHUB_REF}',`
+ `'deployTimestamp': '${Date.now()}',`
+ `'dockerfilePaths': '${filePathConfigs.dockerfilePaths}',`
+ `'manifestsPaths': '${filePathConfigs.manifestFilePaths}',`
+ `'helmChartPaths': '${filePathConfigs.helmChartPaths}',`
+ `'dockerfilePaths': '${JSON.stringify(filePathConfigs.dockerfilePaths)}',`
+ `'manifestsPaths': '${JSON.stringify(filePathConfigs.manifestFilePaths)}',`
+ `'helmChartPaths': '${JSON.stringify(filePathConfigs.helmChartFilePaths)}',`
+ `'provider': 'GitHub'`
+ `}`;
}

View File

@ -38,9 +38,9 @@ export function getWorkflowAnnotationsJson(lastSuccessRunSha: string, workflowFi
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
+ `'branch': '${process.env.GITHUB_REF}',`
+ `'deployTimestamp': '${Date.now()}',`
+ `'dockerfilePaths': '${filePathConfigs.dockerfilePaths}',`
+ `'manifestsPaths': '${filePathConfigs.manifestFilePaths}',`
+ `'helmChartPaths': '${filePathConfigs.helmChartPaths}',`
+ `'dockerfilePaths': '${JSON.stringify(filePathConfigs.dockerfilePaths)}',`
+ `'manifestsPaths': '${JSON.stringify(filePathConfigs.manifestFilePaths)}',`
+ `'helmChartPaths': '${JSON.stringify(filePathConfigs.helmChartFilePaths)}',`
+ `'provider': 'GitHub'`
+ `}`;
}