From 8c423ec140b59024c3c43f39ecaa8e8147ca18d6 Mon Sep 17 00:00:00 2001 From: "Harold Spencer Jr." Date: Mon, 6 Oct 2025 13:06:11 -0700 Subject: [PATCH] Update build-release to leverage GITHUB_OUTPUT to store delivery options (#113) --- .github/workflows/build-release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 72217a7..7061971 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -167,13 +167,13 @@ jobs: # Generate DeliveryOptions # Delivery options are ECS(-Anywhere), EKS(-Anywhere), and Bedrock Agentcore - name: Generate DeliveryOptions + id: delivery_options env: MARKETPL_REGISTRY: ${{ steps.login-ecr.outputs.registry }} MARKETPL_REPOSITORY: brave/brave-search-mcp IMAGE_RELEASE_TAG: ${{ steps.bump-version.outputs.tag }} run: | - echo "DELIVERY_OPTIONS<> $GITHUB_ENV - cat >> $GITHUB_ENV <<'EOF' + json=$(cat <> $GITHUB_OUTPUT - name: Update DeliveryOptions in marketplace-revision-release.yaml - run: yq -i '.ChangeSet[].DetailsDocument.DeliveryOptions = fromjson($DELIVERY_OPTIONS)' marketplace-revision-release.yaml + env: + DELIVERY_OPTIONS: ${{ steps.delivery_options.outputs.DELIVERY_OPTIONS }} + run: yq -i '.ChangeSet[].DetailsDocument.DeliveryOptions = fromjson(env.DELIVERY_OPTIONS)' marketplace-revision-release.yaml - name: Publish New Release to AWS Marketplace Catalog Management Portal run: |