From 7e6090c85897385d685f8933e546c6d304cc5fed Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 17 Jun 2025 17:37:00 +0100 Subject: [PATCH] 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. --- .github/workflows/website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index f27009f6..786e2196 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -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