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 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.'
14
+ default : " "
15
+ required : false
16
+ type : string
11
17
12
18
jobs :
13
19
CompatHelper :
@@ -42,18 +48,16 @@ jobs:
42
48
import CompatHelper
43
49
import Pkg
44
50
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")
55
52
]
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)
57
61
shell : julia --color=yes {0}
58
62
env :
59
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -178,10 +178,12 @@ jobs:
178
178
# # CompatHelper
179
179
180
180
The 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 :
185
187
186
188
` ` ` yaml
187
189
name: "CompatHelper"
@@ -198,4 +200,6 @@ jobs:
198
200
CompatHelper:
199
201
name: "CompatHelper"
200
202
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
203
+ with:
204
+ localregistries: "https://github.com/ITensor/ITensorRegistry.git"
201
205
` ` `
You can’t perform that action at this time.
0 commit comments