Skip to content

Commit ff3b679

Browse files
committed
build(chart): change log and release notes for helm chart
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 9247659 commit ff3b679

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

charts/selenium-grid/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## :heavy_check_mark: selenium-grid-0.28.0
22

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

66
### Added
77
- feat: enable tracing observability in docker-compose and helm chart (#2137) :: Viet Nguyen Duc

generate_chart_changelog.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,24 @@ generate_changelog() {
1515
tags=($(git tag --sort=committerdate | grep "^$TAG_PATTERN"))
1616
tags_size=${#tags[@]}
1717

18+
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:]')
19+
1820
# Check if there are tags
1921
if [ ${#tags[@]} -eq 0 ]; then
2022
commit_range="HEAD"
21-
elif [ ${#tags[@]} -eq 1 ]; then
23+
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
24+
elif [ ${#tags[@]} -eq 1 ] || [ "$SET_TAG" = "HEAD" ]; then
2225
previous_tag="${tags[$tags_size-1]}"
2326
current_tag="HEAD"
2427
commit_range="${previous_tag}..${current_tag}"
28+
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
2529
else
2630
previous_tag="${tags[$tags_size-2]}"
2731
current_tag="${tags[$tags_size-1]}"
2832
commit_range="${previous_tag}..${current_tag}"
33+
change_title="$current_tag"
2934
fi
3035

31-
change_title=$current_tag
32-
if [ "$SET_TAG" = "HEAD" ]; then
33-
current_tag="${SET_TAG}"
34-
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:]')
35-
change_title="${TAG_PATTERN}-${CURRENT_CHART_VERSION}"
36-
fi
3736
echo "Generating changelog for ${change_title}"
3837

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

0 commit comments

Comments
 (0)