Skip to content

Commit

Permalink
Merge pull request #176 from jgilfoil/feature/readme
Browse files Browse the repository at this point in the history
fix githubaction to update k3s version
  • Loading branch information
jgilfoil authored Mar 4, 2024
2 parents de2e0ed + 1b3ed35 commit 719a6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-k3s-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/<!-- k3s_version_badge_start -->/,/<!-- k3s_version_badge_end -->/c\<!-- k3s_version_badge_start -->\n$K3S_VERSION_BADGE\n<!-- k3s_version_badge_end -->" 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: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# My Home Kubernetes

<!-- k3s_version_badge_start -->
[![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/)
<!-- k3s_version_badge_end -->
</div>

Expand Down

0 comments on commit 719a6ce

Please sign in to comment.