mirror of
https://github.com/nektos/act.git
synced 2022-11-26 21:52:29 +03:00
Update workflow.go
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user