Skip to content

Commit

Permalink
Fix k0s_sort download when deploying docs
Browse files Browse the repository at this point in the history
The k0sctl version is available as environment variable, not the
k0s_sort version. That was some mental lapse, obviously.

Fixes: 87601dc ("Pick up k0s_sort version from go.mod in CI")
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Jan 17, 2024
1 parent 87601dc commit 726df14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 726df14

Please sign in to comment.