We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1bb1bc commit 25716efCopy full SHA for 25716ef
cmd/upload.go
@@ -71,11 +71,16 @@ func getToolShortName(fullName string) string {
71
func getRelativePath(baseDir string, fullURI string) string {
72
73
localPath := fullURI
74
+ // GitHub Actions workaround
75
+ if strings.Contains(baseDir, "/home/runner/work/") {
76
+ localPath = filepath.Join(baseDir, fullURI)
77
+ }
78
u, err := url.Parse(fullURI)
79
if err == nil && u.Scheme == "file" {
80
// url.Path extracts the local path component correctly
81
localPath = u.Path
82
}
83
+
84
relativePath, err := filepath.Rel(baseDir, localPath)
85
if err != nil {
86
// Fallback to the normalized absolute path if calculation fails
0 commit comments