From 7ef877c9237c19dcfb094549a92955d46bbea8e1 Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Thu, 18 Jan 2024 11:29:43 +0100 Subject: [PATCH] Revert "Use standard event producer" This reverts commit 47e2e109 --- move2kube/m2k.sw.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/move2kube/m2k.sw.yml b/move2kube/m2k.sw.yml index aa1053ec..8bc53045 100644 --- a/move2kube/m2k.sw.yml +++ b/move2kube/m2k.sw.yml @@ -12,10 +12,6 @@ events: - name: transformationSavedEvent source: '' type: transformation_saved - - name: saveTransformation - source: m2k_swf - type: save-transformation - kind: produced functions: - name: systemOut type: custom @@ -102,18 +98,23 @@ states: topic: "Move2Kube Workflow" transition: SaveTransformationOutput - name: SaveTransformationOutput - type: inject - data: - gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\")) - branch: .targetBranch - token: .token - workspaceId: .workspaceId - projectId: .projectId - transformId: .transformId - workflowCallerId: $WORKFLOW.instanceId - end: - produceEvents: - - eventRef: saveTransformation + type: operation + actions: + - functionRef: + refName: sendCloudEvent + arguments: + HEADER_Ce-Id: $WORKFLOW.instanceId + HEADER_Ce-Specversion: "1.0" + HEADER_Ce-Type: "save-transformation" + HEADER_Ce-Source: "m2k_swf" + HEADER_Content-Type: "application/json" + gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\")) + branch: .targetBranch + token: .token + workspaceId: .workspaceId + projectId: .projectId + transformId: .transformId + workflowCallerId: $WORKFLOW.instanceId transition: WaitForSaveTransformationCompletion - name: WaitForSaveTransformationCompletion type: switch