Skip to content

Commit 6997628

Browse files
authored
Update k8s version logic (#8379)
1 parent 72be85e commit 6997628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-kubernetes-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66
- release-*
77
paths:
8-
- tests/Dockerfile
8+
- tests/Makefile
99

1010
concurrency:
1111
group: ${{ github.ref_name }}-k8s-version
@@ -23,7 +23,7 @@ jobs:
2323
- name: Get current k8s version from Kind image
2424
id: k8s-version
2525
run: |
26-
v=$(grep kindest tests/Dockerfile | cut -d ':' -f 2 | cut -d '@' -f 1)
26+
v=$(grep "^K8S_CLUSTER_VERSION" tests/Makefile | awk '{ print $3 }')
2727
echo "version=${v}" >> $GITHUB_OUTPUT
2828
cat $GITHUB_OUTPUT
2929

0 commit comments

Comments
 (0)