Skip to content

Commit 7520451

Browse files
committed
take 2 with a couple more file updates
1 parent eb6f9e4 commit 7520451

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,16 @@ jobs:
372372
# We just need to update the image tag in the Helm values file.
373373
run: |
374374
set -euo pipefail
375+
VALUES_FILE="oss/charts/v2/airbyte/values.yaml"
375376
# Get the current manifest-server tag from the values.yaml file
376-
PREVIOUS_VERSION=$(grep -A2 "manifestServer:" oss/charts/v2/airbyte/values.yaml | grep "tag:" | sed 's/.*tag: //')
377+
PREVIOUS_VERSION=$(yq '.manifestServer.image.tag' "$VALUES_FILE")
377378
echo "Previous version: ${PREVIOUS_VERSION}"
378379
echo "New version: ${VERSION}"
379380
# Update the manifest-server tag in the Helm values file
380-
sed -i "s/tag: ${PREVIOUS_VERSION}/tag: ${VERSION}/g" "oss/charts/v2/airbyte/values.yaml"
381+
yq -i ".manifestServer.image.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
381385
- name: Create Pull Request
382386
id: create-pull-request
383387
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)