Skip to content

Commit

Permalink
Merge pull request #177 from jgilfoil/feature/readme
Browse files Browse the repository at this point in the history
force sus ks change to trigger gha
  • Loading branch information
jgilfoil authored Mar 4, 2024
2 parents 719a6ce + 8eb0f7b commit 6a3657d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update-k3s-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- name: Update README.md
run: |
K3S_VERSION="k3s-$KUBE_VERSION"
sed -i "s|k3s-v[0-9.]*+k3s[0-9]*|$K3S_VERSION|g" README.md
# Encode '+' as '%2B' for URL compatibility in the badge link
K3S_VERSION_ENCODED=$(echo "$KUBE_VERSION" | sed 's/\+/%2B/g')
K3S_VERSION="k3s-${K3S_VERSION_ENCODED}"
# Use the encoded version in the sed command to ensure proper matching and replacement
sed -i "s|k3s-v[0-9.]*%2Bk3s[0-9]*|$K3S_VERSION|g" README.md
- name: Commit and Push
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ spec:
substitute:
# renovate: datasource=github-releases depName=k3s-io/k3s
KUBE_VERSION: v1.29.1+k3s2

0 comments on commit 6a3657d

Please sign in to comment.