File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,20 @@ jobs:
54
54
end
55
55
end
56
56
try
57
- Pkg.develop(PackageSpec(path="downstream"))
57
+ repo_and_subdir = split("${{ inputs.repo }}", ':')
58
+ repo = first(repo_and_subdir)
59
+ pkg_name = string(first(split(last(split(repo, '/')), '.')))
60
+ path = "downstream"
61
+ if length(repo_and_subdir) > 1
62
+ length(repo_and_subdir) == 2 || error("Bad repo input.")
63
+ subdir = last(repo_and_subdir)
64
+ path = joinpath(path, subdir)
65
+ pkg_name = last(split(repo, '/'))
66
+ end
67
+ Pkg.develop(PackageSpec(path))
58
68
# force it to use this PR's version of the package
59
69
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
60
70
Pkg.update()
61
- pkg_name = string(first(split(last(split("${{ inputs.repo }}", '/')), '.')))
62
71
Pkg.test(pkg_name) # resolver may fail with test time deps
63
72
catch err
64
73
err isa Pkg.Resolve.ResolverError || rethrow()
You can’t perform that action at this time.
0 commit comments