File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3838
3939 - name : Get Latest Versions
4040 run : |
41- # Get latest Kubernetes version
42- echo "KUBERNETES_VERSION=$(curl -s https://api.github.com/repos/kubernetes/kubernetes /releases/latest | grep '"tag_name" ' | cut -d'"' -f4 )" >> $GITHUB_ENV
41+ # Get latest supported Kubernetes version from Minikube
42+ echo "KUBERNETES_VERSION=v $(curl -s https://api.github.com/repos/kubernetes/minikube /releases/latest | jq -r '.body ' | grep -o "Support Kubernetes version v[0-9]\+\.[0-9]\+\.[0-9]\+" | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+" )" >> $GITHUB_ENV
4343
4444 # Get latest Minikube version
4545 echo "MINIKUBE_VERSION=$(curl -s https://api.github.com/repos/kubernetes/minikube/releases/latest | grep '"tag_name"' | cut -d'"' -f4)" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments