diff --git a/lib/constants.js b/lib/constants.js index adbf124f..f2ac7369 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -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'` + `}`; } diff --git a/src/constants.ts b/src/constants.ts index 505b371e..d215fd3a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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'` + `}`; }