Update workflow.go

This commit is contained in:
ChristopherHX
2022-09-15 22:10:56 +02:00
committed by GitHub
parent aa9ab6bbc2
commit 063e55abb8

View File

@@ -86,7 +86,7 @@ func (j *Job) UnmarshalYAML(value *yaml.Node) error {
djob := &DRYRUNJob{}
err = value.Decode(&djob)
if !djob.Outputs.IsZero() {
job.DRYRUNOutputs = map[string]string{}
j.DRYRUNOutputs = map[string]string{}
prefix := "#DRYRUN: "
for i := 0; i+1 < len(djob.Outputs.Content); i += 2 {
comment := strings.ReplaceAll(djob.Outputs.Content[i].HeadComment, "# DRYRUN: ", prefix)