Skip to content

Commit

Permalink
automatically generate release notes for helm chart in GitHub Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Nov 17, 2024
1 parent 62c9aa2 commit 6484eab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
run: |
# Read the current version
version=$(yq e '.version' charts/libretranslate/Chart.yaml)
# Split the version into major, minor, and patch
IFS='.' read -ra VERSION_PARTS <<< "$version"
# Increment the minor version
VERSION_PARTS[2]=$((VERSION_PARTS[2] + 1))
# Reassemble the version string
new_version="${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.${VERSION_PARTS[2]}"
# Update the version in the Chart.yaml file
yq e ".version = \"$new_version\"" -i charts/libretranslate/Chart.yaml
Expand Down Expand Up @@ -66,3 +66,4 @@ jobs:
packages_with_index: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: true

0 comments on commit 6484eab

Please sign in to comment.