Fix file downloader not returning the name of the downloaded file
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-08-03 12:47:17 -07:00
parent 681e5fa95b
commit f44a9509a2
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ func (FileDownloader) Download(opts Options) (Type, string, error) {
}
if opts.PostprocDisabled {
return TypeFile, "", nil
return TypeFile, name, nil
}
_, err = fl.Seek(0, io.SeekStart)
@ -144,7 +144,7 @@ func (FileDownloader) Download(opts Options) (Type, string, error) {
format, r, err := archiver.Identify(name, fl)
if err == archiver.ErrNoMatch {
return TypeFile, "", nil
return TypeFile, name, nil
} else if err != nil {
return 0, "", err
}