Fix leading slash
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m19s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m19s
This commit is contained in:
parent
6588bd2d45
commit
8a5edd39b1
4
main.go
4
main.go
@ -9,7 +9,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/sethvargo/go-githubactions"
|
||||
)
|
||||
@ -78,11 +77,10 @@ func main() {
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
githubactions.Infof("Skipping directory %v", innerPath)
|
||||
return nil
|
||||
}
|
||||
|
||||
relativeParh := strings.TrimPrefix(innerPath, path)
|
||||
relativeParh, _ := filepath.Rel(path, innerPath)
|
||||
githubactions.Infof("Reading %v", relativeParh)
|
||||
w, err := mwriter.CreateFormFile("file", relativeParh)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user