File tree Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Expand file tree Collapse file tree 2 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 88 default : " 1"
99 required : false
1010 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.'
14+ default : " "
15+ required : false
16+ type : string
1117
1218jobs :
1319 CompatHelper :
@@ -42,18 +48,16 @@ jobs:
4248 import CompatHelper
4349 import Pkg
4450 registries = [
45- Pkg.RegistrySpec(
46- name = "General",
47- uuid = "23338594-aafe-5451-b93e-139f81909106",
48- url = "https://github.com/JuliaRegistries/General.git",
49- ),
50- Pkg.RegistrySpec(
51- name = "ITensorRegistry",
52- uuid = "c4d53e37-7e0e-4be9-ba6f-c27e01f48020",
53- url = "https://github.com/ITensor/ITensorRegistry.git",
54- ),
51+ Pkg.RegistrySpec(; url = "https://github.com/JuliaRegistries/General.git")
5552 ]
56- CompatHelper.main(; registries)
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))
58+ end
59+ end
60+ CompatHelper.main(; registries, bump_version=true)
5761 shell : julia --color=yes {0}
5862 env :
5963 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -178,10 +178,12 @@ jobs:
178178# # CompatHelper
179179
180180The CompatHelper workflow is designed to periodically check dependencies for breaking
181- releases, and if so make PRs to bump the compat versions. The workflow would look like :
182- Note this workflow checks both the Julia [General registry](https://github.com/JuliaRegistries/General)
183- and the [ITensorRegistry](https://github.com/ITensor/ITensorRegistry) for breaking releases
184- of dependencies.
181+ releases, and if so make PRs to bump the compat versions. By default this workflow
182+ checks the Julia [General registry](https://github.com/JuliaRegistries/General)
183+ for breaking releases of dependencies, but you can add other registries
184+ by specifying the registry repository URLs in the `localregistries` option, which should
185+ be a string with URLs of repositories seperated by a newline character (`\n`).
186+ Here is an example workflow :
185187
186188` ` ` yaml
187189name: "CompatHelper"
@@ -198,4 +200,6 @@ jobs:
198200 CompatHelper:
199201 name: "CompatHelper"
200202 uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
203+ with:
204+ localregistries: "https://github.com/ITensor/ITensorRegistry.git"
201205` ` `
You can’t perform that action at this time.
0 commit comments