Skip to content

Commit 8290ef1

Browse files
committed
debug: more logging in addPublishOutputs
1 parent 739f6e7 commit 8290ef1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

internal/actions/release.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,18 @@ func GetDirAndShouldUseReleasesMD(files []string, dir string, usingReleasesMd bo
150150
}
151151

152152
func addPublishOutputs(dir string, outputs map[string]string) error {
153+
logging.Info("DEBUG: addPublishOutputs called with dir=%s", dir)
154+
153155
wf, err := configuration.GetWorkflowAndValidateLanguages(false)
154156
if err != nil {
155157
return err
156158
}
157159

158-
for _, target := range wf.Targets {
160+
logging.Info("DEBUG: Found %d targets in workflow", len(wf.Targets))
161+
162+
for targetID, target := range wf.Targets {
163+
logging.Info("DEBUG: Checking target %s (lang=%s)", targetID, target.Target)
164+
159165
// Only add outputs for the target that was regenerated, based on output directory
160166
if dir != "." && target.Output != nil {
161167
output, err := filepath.Rel(".", *target.Output)
@@ -167,7 +173,9 @@ func addPublishOutputs(dir string, outputs map[string]string) error {
167173
output = filepath.Join(environment.GetWorkingDirectory(), output)
168174
}
169175

176+
logging.Info("DEBUG: dir=%s, output=%s", dir, output)
170177
if output != dir {
178+
logging.Info("DEBUG: Skipping target %s because output doesn't match dir", targetID)
171179
continue
172180
}
173181
}

0 commit comments

Comments
 (0)