Stop using relpath
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 47s

This commit is contained in:
Alexandre Bruyant 2024-01-07 13:13:11 +01:00
parent 8ecac01dc5
commit d6484243e3

View File

@ -80,9 +80,8 @@ func main() {
return nil
}
relativeParh, _ := filepath.Rel(path, innerPath)
githubactions.Infof("Reading %v", relativeParh)
w, err := mwriter.CreateFormFile("file", relativeParh)
githubactions.Infof("Reading %v", innerPath)
w, err := mwriter.CreateFormFile("file", innerPath)
if err != nil {
return err
}
@ -95,9 +94,9 @@ func main() {
written, err := io.Copy(w, fileReader)
if err != nil {
return fmt.Errorf("error copying %s (%d bytes written): %v", relativeParh, written, err)
return fmt.Errorf("error copying %s (%d bytes written): %v", innerPath, written, err)
} else {
githubactions.Infof("Read %v bytes from %s", written, relativeParh)
githubactions.Infof("Read %v bytes from %s", written, innerPath)
}
return nil