Skip to content

Commit 8903683

Browse files
committed
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. (cherry picked from commit b4750c4)
1 parent e74a85b commit 8903683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
"base-href": "/nixvim/"
4646
}
4747
| select(.ref != "main").sub-path = .name
48-
| select(.ref != "main").base-href += .name + "/"
48+
| select(.ref != "main").base-href = "\(.base-href)\(.name)/"
4949
]
5050
' version-info.toml
5151

0 commit comments

Comments
 (0)