Skip to content

Commit 01aa92b

Browse files
committed
Change CompatHelper option to localregistry
1 parent 56651f7 commit 01aa92b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88
default: "1"
99
required: false
1010
type: string
11-
local-registry-urls:
11+
localregistry:
1212
description: 'URLs of registries besides General to use. Specified by providing the url (https/ssh) to the Github
1313
repositories as a newline (\n) seperated list. Should correspond to the registry names listed in
14-
`local-registry-names`.'
14+
`localregistry-names`.'
1515
default: ""
1616
required: false
1717
type: string
18-
local-registry-names:
18+
localregistry-names:
1919
description: 'Names of registries besides General to use. Specified by providing the name of the registries
20-
as a newline (\n) seperated list. Should correspond to the registry URLs listed in `local-registry-urls`.'
20+
as a newline (\n) seperated list. Should correspond to the registry URLs listed in `localregistry`.'
2121
default: ""
2222
required: false
2323
type: string
@@ -60,10 +60,10 @@ jobs:
6060
url = "https://github.com/JuliaRegistries/General.git",
6161
)
6262
]
63-
if !isempty("${{ inputs.local-registry-urls }}")
64-
registry_urls = split("${{ inputs.local-registry-urls }}", "\n") .|> string
65-
registry_names = if !isempty("${{ inputs.local-registry-names }}")
66-
split("${{ inputs.local-registry-names }}", "\n") .|> string
63+
if !isempty("${{ inputs.localregistry }}")
64+
registry_urls = split("${{ inputs.localregistry }}", "\n") .|> string
65+
registry_names = if !isempty("${{ inputs.localregistry-names }}")
66+
split("${{ inputs.localregistry-names }}", "\n") .|> string
6767
else
6868
# Guess the registry name from the last part of the repository URL.
6969
map(registry_url -> string(first(split(last(split(registry_url, '/')), '.'))), registry_urls)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ The CompatHelper workflow is designed to periodically check dependencies for bre
181181
releases, and if so make PRs to bump the compat versions. By default this workflow
182182
checks the Julia [General registry](https://github.com/JuliaRegistries/General)
183183
for breaking releases of dependencies, but you can add other registries
184-
by specifying the registry URLs with the `local-registy-urls` option,
184+
by specifying the registry URLs with the `localregistry` option,
185185
which should be strings with registry URLs seperated by a newline character (`\n`).
186186
Registry names will be guess from the URLs, for example if a registry URL
187187
is "https://github.com/ITensor/ITensorRegistry.git" we will guess that the
188188
registry name is "ITensorRegistry". If that is not the case for one or more registry,
189-
you will need to specify all of the registry names as well using the `local-registry-names`
189+
you will need to specify all of the registry names as well using the `localregistry-names`
190190
in the same format. Here is an example workflow:
191191

192192
```yaml
@@ -205,7 +205,7 @@ jobs:
205205
name: "CompatHelper"
206206
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
207207
with:
208-
local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git"
208+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
209209
```
210210

211211
## IntegrationTest

0 commit comments

Comments
 (0)