Skip to content

Commit

Permalink
[ci] Update generate chart changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Dec 30, 2024
1 parent 6f25d80 commit 50dd03c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions generate_chart_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ generate_changelog() {
echo "$k8s_versions_tested" >>"$temp_file"
echo "$docker_versions_tested" >>"$temp_file"
echo "$helm_versions_tested" >>"$temp_file"
get_keda_version
if [ "${IS_PATCHED_VERSION}" == "true" ]; then
if [ -n "$KEDA_IMAGE_TAG" ]; then
echo "- Chart is tested autoscaling capabilities with KEDA image tag: $KEDA_IMAGE_TAG" >>"$temp_file"
echo "- Selenium Grid Scaler implementation preview. [README](https://github.com/seleniumhq/docker-selenium/tree/trunk/.keda/README.md)" >>"$temp_file"
fi
else
echo "- Chart is tested autoscaling capabilities with KEDA image tag: $KEDA_CORE_VERSION" >>"$temp_file"
fi
echo "" >>"$temp_file"

if [ -n "$added_changes" ]; then
Expand All @@ -89,18 +98,6 @@ generate_changelog() {
echo "" >>"$temp_file"
fi

get_keda_version
if [ "${IS_PATCHED_VERSION}" == "true" ]; then
echo "### Experimental" >>"$temp_file"
echo "- Selenium Grid Scaler implementation preview. [README](https://github.com/seleniumhq/docker-selenium/tree/trunk/.keda/README.md)" >>"$temp_file"
if [ -n "$KEDA_IMAGE_TAG" ]; then
echo "- Chart is tested autoscaling capabilities with KEDA image tag: $KEDA_IMAGE_TAG" >>"$temp_file"
fi
else
echo "- Chart is tested autoscaling capabilities with KEDA image tag: $KEDA_CORE_VERSION" >>"$temp_file"
fi
echo "" >>"$temp_file"

# Create chart_release_notes.md
release_notes_file="$CHART_DIR/RELEASE_NOTES.md"
chart_description=$(find . \( -type d -name .git -prune \) -o -type f -wholename '*/selenium-grid/Chart.yaml' -print0 | xargs -0 cat | grep ^description | cut -d ':' -f 2)
Expand Down

0 comments on commit 50dd03c

Please sign in to comment.