|
8 | 8 | default: "1"
|
9 | 9 | required: false
|
10 | 10 | type: string
|
11 |
| - localregistries: |
12 |
| - description: 'Registries besides General to use. Specified by providing the url (https/ssh) to the Github |
13 |
| - repositories as a newline (\n) seperated list.' |
| 11 | + local-registry-names: |
| 12 | + description: 'Names of registries besides General to use. Specified by providing the name of the registries |
| 13 | + as a newline (\n) seperated list. Should correspond to the registry URLs listed in `local-registry-urls`.' |
| 14 | + default: "" |
| 15 | + required: false |
| 16 | + type: string |
| 17 | + local-registry-urls: |
| 18 | + description: 'URLs of registries besides General to use. Specified by providing the url (https/ssh) to the Github |
| 19 | + repositories as a newline (\n) seperated list. Should correspond to the registry names listed in |
| 20 | + `local-registry-names`.' |
14 | 21 | default: ""
|
15 | 22 | required: false
|
16 | 23 | type: string
|
@@ -48,13 +55,17 @@ jobs:
|
48 | 55 | import CompatHelper
|
49 | 56 | import Pkg
|
50 | 57 | registries = [
|
51 |
| - Pkg.RegistrySpec(; url = "https://github.com/JuliaRegistries/General.git") |
| 58 | + Pkg.RegistrySpec(; |
| 59 | + name = "General", |
| 60 | + url = "https://github.com/JuliaRegistries/General.git", |
| 61 | + ) |
52 | 62 | ]
|
53 |
| - if !isempty("${{ inputs.localregistries }}") |
54 |
| - local_repos = split("${{ inputs.localregistries }}", "\n") .|> string |
55 |
| - for repo_url in local_repos |
56 |
| - isempty(repo_url) && continue |
57 |
| - pus!(registries, Pkg.RegistrySpec(; url = repo_url)) |
| 63 | + if !isempty("${{ inputs.local-registry-names }}") && !isempty("${{ inputs.local-registry-urls }}") |
| 64 | + names = split("${{ inputs.local-registry-names }}", "\n") .|> string |
| 65 | + urls = split("${{ inputs.local-registry-urls }}", "\n") .|> string |
| 66 | + for (name, url) in zip(names, urls) |
| 67 | + (isempty(name) || isempty(url)) && continue |
| 68 | + push!(registries, Pkg.RegistrySpec(; name, url)) |
58 | 69 | end
|
59 | 70 | end
|
60 | 71 | CompatHelper.main(; registries, bump_version=true)
|
|
0 commit comments