Skip to content

Commit f7f5271

Browse files
authored
fix: determine exact k8s version step (#1728)
1 parent 5396b10 commit f7f5271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ jobs:
367367
# Cluster name must be no longer than 63 characters
368368
- name: Determine exact k8s version
369369
run: |
370-
echo LINODE_K8S_VERSION=$(linode-cli lke versions-list --json | jq -ce --arg version "${{ matrix.kubernetes_versions }}" '.[] | select(.id | tostring | startswith($version)) | .id') >> $GITHUB_ENV
370+
echo LINODE_K8S_VERSION=$(linode-cli lke versions-list --json | jq -ce --arg version "$(echo ${{ matrix.kubernetes_versions }} | sed -E 's/^([0-9]+\.[0-9])$/\10/')" '.[] | select(.id | tostring | startswith($version)) | .id') >> $GITHUB_ENV
371371
- name: Create k8s cluster for testing
372372
run: |
373373
linode-cli lke cluster-create \

0 commit comments

Comments
 (0)