Skip to content

Commit ac52283

Browse files
committed
take 3
1 parent 7520451 commit ac52283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)