diff --git a/.github/workflows/update-k3s-version.yml b/.github/workflows/update-k3s-version.yml index 739a9bdd..479c8665 100644 --- a/.github/workflows/update-k3s-version.yml +++ b/.github/workflows/update-k3s-version.yml @@ -20,8 +20,8 @@ jobs: - name: Update README.md run: | - K3S_VERSION_BADGE="[![k3s version](https://img.shields.io/badge/dynamic/yaml?url=https://raw.githubusercontent.com/jgilfoil/home-cluster/main/kubernetes/apps/kube-system/system-upgrade-controller/ks.yaml&query=$.KUBE_VERSION&style=for-the-badge&logo=kubernetes&logoColor=white&label=k3s)](https://k3s.io/)" - sed -i "//,//c\\n$K3S_VERSION_BADGE\n" README.md + K3S_VERSION="k3s-$KUBE_VERSION" + sed -i "s|k3s-v[0-9.]*+k3s[0-9]*|$K3S_VERSION|g" README.md - name: Commit and Push run: | diff --git a/README.md b/README.md index 90612183..66575be7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # My Home Kubernetes -[![k3s version](https://img.shields.io/badge/dynamic/yaml?url=https://raw.githubusercontent.com/jgilfoil/home-cluster/main/kubernetes/apps/kube-system/system-upgrade-controller/ks.yaml&query=$.KUBE_VERSION&style=for-the-badge&logo=kubernetes&logoColor=white&label=k3s)](https://k3s.io/) +[![k3s version](https://img.shields.io/badge/k3s-v1.28.7%2Bk3s2-blue?style=for-the-badge&logo=kubernetes&logoColor=white)](https://k3s.io/)