mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
ci/docs: fix base-href
in matrix
For some reason, when updating `base-href` using `+=`, yq updates _all_ entries matching the LHS selection. This means that all non-main branches get `"base-href": "/nixvim/24.11/"` in the job matrix. This gets passed in as an overridden attr when building the docs, and is used to determine which list item represents the currently-being-built docs; therefore both 25.05 and 24.11 think they are 24.11... For some reason, while `+=` does this, `=` does not. So switched to using that.
This commit is contained in:
parent
7ff884527e
commit
b4750c4696
1 changed files with 1 additions and 1 deletions
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
|||
"base-href": "/nixvim/"
|
||||
}
|
||||
| select(.ref != "main").sub-path = .name
|
||||
| select(.ref != "main").base-href += .name + "/"
|
||||
| select(.ref != "main").base-href = "\(.base-href)\(.name)/"
|
||||
]
|
||||
' version-info.toml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue