@@ -874,7 +874,11 @@ func (dm *YAMLParser) ComposeActions(manifestFilePath string, actions map[string
874874
875875 // update the action (of type Action) to set its name
876876 // here key name is the action name
877- action .Name = actionName
877+ if i , ok := packageInputs .Inputs [wskenv .GetEnvVarName (actionName )]; ok {
878+ action .Name = i .Value .(string )
879+ } else {
880+ action .Name = wskenv .ConvertSingleName (actionName )
881+ }
878882
879883 // Create action data object from client library
880884 wskaction := new (whisk.Action )
@@ -946,7 +950,7 @@ func (dm *YAMLParser) ComposeActions(manifestFilePath string, actions map[string
946950 if wskaction .Annotations != nil {
947951 if webaction .HasAnnotation (& wskaction .Annotations , webaction .REQUIRE_WHISK_AUTH ) {
948952 _ , errorParser = webaction .ValidateRequireWhiskAuthAnnotationValue (
949- actionName ,
953+ action . Name ,
950954 wskaction .Annotations .GetValue (webaction .REQUIRE_WHISK_AUTH ))
951955 }
952956 if errorParser != nil {
@@ -967,7 +971,7 @@ func (dm *YAMLParser) ComposeActions(manifestFilePath string, actions map[string
967971 }
968972
969973 // Set other top-level values for the action (e.g., name, version, publish, etc.)
970- wskaction .Name = actionName
974+ wskaction .Name = action . Name
971975 pub := false
972976 wskaction .Publish = & pub
973977 wskaction .Version = wskenv .ConvertSingleName (action .Version )
0 commit comments