File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,11 +374,11 @@ jobs:
374374 set -euo pipefail
375375 VALUES_FILE="oss/charts/v2/airbyte/values.yaml"
376376 # Get the current manifest-server tag from the values.yaml file
377- PREVIOUS_VERSION=$(yq '. manifestServer.image.tag' "$VALUES_FILE")
377+ PREVIOUS_VERSION=$(grep -A4 "^ manifestServer:" "$VALUES_FILE" | grep "tag:" | awk '{print $2}' )
378378 echo "Previous version: ${PREVIOUS_VERSION}"
379379 echo "New version: ${VERSION}"
380- # Update the manifest-server tag in the Helm values file
381- yq -i ". manifestServer.image. tag = \" ${VERSION}\" " "$VALUES_FILE"
380+ # Update the manifest-server tag in the Helm values file (preserves formatting)
381+ sed -i "/^ manifestServer:/,/^[a-zA-Z]/ s/ tag: ${PREVIOUS_VERSION}/tag: ${VERSION}/ " "$VALUES_FILE"
382382 # Also update the CDK version in the manifest-server-api build file
383383 sed -i "s/refs\/tags\/v${PREVIOUS_VERSION}/refs\/tags\/v${VERSION}/g" "oss/airbyte-api/manifest-server-api/build.gradle.kts"
384384 echo ${VERSION} > oss/airbyte-connector-builder-resources/CDK_VERSION
You can’t perform that action at this time.
0 commit comments