From 726df14f425d4e6be691c2a935fe754e73cebc81 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Wed, 17 Jan 2024 09:31:58 +0100 Subject: [PATCH] Fix k0s_sort download when deploying docs The k0sctl version is available as environment variable, not the k0s_sort version. That was some mental lapse, obviously. Fixes: 87601dc8a ("Pick up k0s_sort version from go.mod in CI") Signed-off-by: Tom Wieczorek --- .github/workflows/publish-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 12ca18e162d6..9867f50932b3 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -33,8 +33,9 @@ jobs: pip --version pip install --disable-pip-version-check -r docs/requirements.txt + k0sSortVersion=$(./vars.sh FROM=. k0s_sort_version) mkdir -p build/cache/bin - curl -sSLo build/cache/bin/k0s_sort --retry 5 --retry-all-errors "https://github.com/k0sproject/version/releases/download/$K0S_SORT_VERSION/k0s_sort-linux-amd64" + curl -sSLo build/cache/bin/k0s_sort --retry 5 --retry-all-errors "https://github.com/k0sproject/version/releases/download/$k0sSortVersion/k0s_sort-linux-amd64" chmod +x build/cache/bin/k0s_sort printf '%s\n' "$(realpath build/cache/bin)" >>"$GITHUB_PATH"