@@ -342,8 +342,7 @@ jobs:
342342      url : https://github.com/airbytehq/airbyte-platform-internal/pulls?q=is%3Apr+automatic-cdk-release+ 
343343    needs :
344344      - build 
345-       - publish_cdk 
346-       - publish_sdm 
345+       - publish_manifest_server 
347346    if : > 
348347      (github.event_name == 'push' && 
349348       needs.build.outputs.IS_PRERELEASE == 'false' && 
@@ -355,9 +354,6 @@ jobs:
355354      IS_PRERELEASE : ${{ needs.build.outputs.IS_PRERELEASE }} 
356355    runs-on : ubuntu-24.04 
357356    steps :
358-       - uses : actions/setup-python@v5 
359-         with :
360-           python-version : " 3.10" 
361357      - name : Authenticate as GitHub App 
362358        uses : actions/create-github-app-token@v2 
363359        id : get-app-token 
@@ -372,24 +368,20 @@ jobs:
372368          repository : airbytehq/airbyte-platform-internal 
373369          token : ${{ steps.get-app-token.outputs.token }} 
374370      - name : Update Builder's CDK version to ${{ env.VERSION }} 
375-         #  PyPI servers aren't immediately updated so we may need to retry a few times.
376-         uses : nick-fields/retry@v3 
377-         with :
378-           shell : bash 
379-           max_attempts : 5 
380-           retry_wait_seconds : 30 
381-           timeout_minutes : 7 
382-           command : | 
383-             set -euo pipefail 
384-             PREVIOUS_VERSION=$(cat oss/airbyte-connector-builder-resources/CDK_VERSION) 
385-             sed -i "s/${PREVIOUS_VERSION}/${VERSION}/g" "oss/airbyte-connector-builder-server/Dockerfile" 
386-             sed -i "s/airbyte-cdk==${PREVIOUS_VERSION}/airbyte-cdk==${VERSION}/g" oss/airbyte-connector-builder-server/requirements.in 
387-             sed -i "s/tag: ${PREVIOUS_VERSION}/tag: ${VERSION}/g" "oss/charts/v2/airbyte/values.yaml" 
388-             sed -i "s/refs\/tags\/v${PREVIOUS_VERSION}/refs\/tags\/v${VERSION}/g" "oss/airbyte-api/manifest-server-api/build.gradle.kts" 
389-             echo ${VERSION} > oss/airbyte-connector-builder-resources/CDK_VERSION 
390-             cd oss/airbyte-connector-builder-server 
391-             python -m pip install --no-cache-dir pip-tools 
392-             pip-compile --upgrade 
371+         #  The manifest-server Docker image already includes the CDK version.
372+         #  We just need to update the image tag in the Helm values file.
373+         run : | 
374+           set -euo pipefail 
375+           VALUES_FILE="oss/charts/v2/airbyte/values.yaml" 
376+           # Get the current manifest-server tag from the values.yaml file 
377+           PREVIOUS_VERSION=$(grep -A15 "^manifestServer:" "$VALUES_FILE" | grep -A4 "image:" | grep "tag:" | awk '{print $2}') 
378+           echo "Previous version: ${PREVIOUS_VERSION}" 
379+           echo "New version: ${VERSION}" 
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" 
382+           # Also update the CDK version in the manifest-server-api build file 
383+           sed -i "s/refs\/tags\/v${PREVIOUS_VERSION}/refs\/tags\/v${VERSION}/g" "oss/airbyte-api/manifest-server-api/build.gradle.kts" 
384+           echo ${VERSION} > oss/airbyte-connector-builder-resources/CDK_VERSION 
393385name : Create Pull Request 
394386        id : create-pull-request 
395387        uses : peter-evans/create-pull-request@v7 
0 commit comments