Skip to content

Commit

Permalink
build(chart): change log and release notes for helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Feb 20, 2024
1 parent 9247659 commit ff3b679
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/selenium-grid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## :heavy_check_mark: selenium-grid-0.28.0

- Chart is using image tag 4.18.0-20240220
Chart is tested on Kubernetes versions: v1.25.16,v1.26.14,v1.27.11,v1.28.7,v1.29.2,
- Chart is tested on Kubernetes versions: v1.25.16 v1.26.14 v1.27.11 v1.28.7 v1.29.2

### Added
- feat: enable tracing observability in docker-compose and helm chart (#2137) :: Viet Nguyen Duc
Expand Down
13 changes: 6 additions & 7 deletions generate_chart_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,24 @@ generate_changelog() {
tags=($(git tag --sort=committerdate | grep "^$TAG_PATTERN"))
tags_size=${#tags[@]}

CURRENT_CHART_VERSION=$(find . \( -type d -name .git -prune \) -o -type f -name 'Chart.yaml' -print0 | xargs -0 cat | grep ^version | cut -d ':' -f 2 | tr -d '[:space:]')

# Check if there are tags
if [ ${#tags[@]} -eq 0 ]; then
commit_range="HEAD"
elif [ ${#tags[@]} -eq 1 ]; then
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
elif [ ${#tags[@]} -eq 1 ] || [ "$SET_TAG" = "HEAD" ]; then
previous_tag="${tags[$tags_size-1]}"
current_tag="HEAD"
commit_range="${previous_tag}..${current_tag}"
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
else
previous_tag="${tags[$tags_size-2]}"
current_tag="${tags[$tags_size-1]}"
commit_range="${previous_tag}..${current_tag}"
change_title="$current_tag"
fi

change_title=$current_tag
if [ "$SET_TAG" = "HEAD" ]; then
current_tag="${SET_TAG}"
CURRENT_CHART_VERSION=$(find . \( -type d -name .git -prune \) -o -type f -name 'Chart.yaml' -print0 | xargs -0 cat | grep ^version | cut -d ':' -f 2 | tr -d '[:space:]')
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
fi
echo "Generating changelog for ${change_title}"

# Get the changes for each section (Added, Removed, Fixed, Changed)
Expand Down

0 comments on commit ff3b679

Please sign in to comment.