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:
Matt Sturgeon 2025-06-17 17:37:00 +01:00
parent 7ff884527e
commit 7e6090c858
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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