mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user