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:
5454 end
5555 end
5656 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))
5868 # force it to use this PR's version of the package
5969 Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
6070 Pkg.update()
61- pkg_name = string(first(split(last(split("${{ inputs.repo }}", '/')), '.')))
6271 Pkg.test(pkg_name) # resolver may fail with test time deps
6372 catch err
6473 err isa Pkg.Resolve.ResolverError || rethrow()
You can’t perform that action at this time.
0 commit comments