Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
default: "1"
required: false
type: string
localregistries:
description: 'Registries besides General to use. Specified by providing the url (https/ssh) to the Github
repositories as a newline (\n) seperated list.'
default: ""
required: false
type: string

jobs:
CompatHelper:
Expand Down Expand Up @@ -42,18 +48,16 @@ jobs:
import CompatHelper
import Pkg
registries = [
Pkg.RegistrySpec(
name = "General",
uuid = "23338594-aafe-5451-b93e-139f81909106",
url = "https://github.com/JuliaRegistries/General.git",
),
Pkg.RegistrySpec(
name = "ITensorRegistry",
uuid = "c4d53e37-7e0e-4be9-ba6f-c27e01f48020",
url = "https://github.com/ITensor/ITensorRegistry.git",
),
Pkg.RegistrySpec(; url = "https://github.com/JuliaRegistries/General.git")
]
CompatHelper.main(; registries)
if !isempty("${{ inputs.localregistries }}")
local_repos = split("${{ inputs.localregistries }}", "\n") .|> string
for repo_url in local_repos
isempty(repo_url) && continue
pus!(registries, Pkg.RegistrySpec(; url = repo_url))
end
end
CompatHelper.main(; registries, bump_version=true)
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,12 @@ jobs:
## CompatHelper

The CompatHelper workflow is designed to periodically check dependencies for breaking
releases, and if so make PRs to bump the compat versions. The workflow would look like:
Note this workflow checks both the Julia [General registry](https://github.com/JuliaRegistries/General)
and the [ITensorRegistry](https://github.com/ITensor/ITensorRegistry) for breaking releases
of dependencies.
releases, and if so make PRs to bump the compat versions. By default this workflow
checks the Julia [General registry](https://github.com/JuliaRegistries/General)
for breaking releases of dependencies, but you can add other registries
by specifying the registry repository URLs in the `localregistries` option, which should
be a string with URLs of repositories seperated by a newline character (`\n`).
Here is an example workflow:

```yaml
name: "CompatHelper"
Expand All @@ -198,4 +200,6 @@ jobs:
CompatHelper:
name: "CompatHelper"
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
with:
localregistries: "https://github.com/ITensor/ITensorRegistry.git"
```