updated the annotation key label

This commit is contained in:
Vidya Reddy
2022-07-27 22:23:32 +05:30
parent 0a3b59b275
commit 1516e1430d
2 changed files with 3 additions and 9 deletions
+2 -8
View File
@@ -27,14 +27,8 @@ export function getWorkflowAnnotations(
return JSON.stringify(annotationObject)
}
export function getWorkflowAnnotationKeyLabel(
workflowFilePath: string
): string {
const hashKey = require('crypto')
.createHash('MD5')
.update(`${ANNOTATION_PREFIX}/${workflowFilePath}`)
.digest('hex')
return `githubWorkflow_${hashKey}`
export function getWorkflowAnnotationKeyLabel(): string {
return `${ANNOTATION_PREFIX}/k8s-deploy`
}
/**