Skip to content

Commit 8c66027

Browse files
authored
feat: output hooks values in stage-config.json (#5311)
1 parent 7250494 commit 8c66027

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/getConfig.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ func getConfigWithFlagValues(cmd *cobra.Command) (config.StepConfig, error) {
168168
if err != nil {
169169
return stepConfig, errors.Wrap(err, "getting stage config failed")
170170
}
171+
// add hooks (defaults + custom defaults) to stage-config.json output
172+
stepConfig.Config["hooks"] = stepConfig.HookConfig
171173
} else {
172174
log.Entry().Infof("Printing stepName %s", configOptions.StepName)
173175
if GeneralConfig.MetaDataResolver == nil {

0 commit comments

Comments
 (0)