From 27dc924c61de98cf5c7e541ed74795de97d05efb Mon Sep 17 00:00:00 2001 From: "Harold Spencer Jr." Date: Mon, 6 Oct 2025 15:44:47 -0700 Subject: [PATCH] Update IMAGE_TAG replacement (#120) * Remove Intent from StartChangeSet yaml template, due to Intent not supported for change type 'AddDeliveryOptions' on entity type 'ContainerProduct@1.0' * Update IMAGE_TAG to use env() --- .github/workflows/build-release.yml | 10 +++++----- marketplace-revision-release.yaml | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index a2b10a5..82ad36f 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -141,15 +141,15 @@ jobs: env: IMAGE_RELEASE_TAG: ${{ steps.bump-version.outputs.tag }} run: | - yq -i '.ChangeSet[].DetailsDocument.Version.VersionTitle = "Release $IMAGE_RELEASE_TAG"' marketplace-revision-release.yaml - yq -i '(.ChangeSetTags[] | ( .[] | select(.Key == "Release") ) | .Value) = $IMAGE_RELEASE_TAG' marketplace-revision-release.yaml - yq -i '.ChangeSetName = "Add New Release $IMAGE_RELEASE_TAG"' marketplace-revision-release.yaml + yq -i '.ChangeSet[].DetailsDocument.Version.VersionTitle = "Release " + env(IMAGE_RELEASE_TAG)' marketplace-revision-release.yaml + yq -i '(.ChangeSetTags[] | ( .[] | select(.Key == "Release") ) | .Value) = env(IMAGE_RELEASE_TAG)' marketplace-revision-release.yaml + yq -i '.ChangeSetName = "Add New Release " + env(IMAGE_RELEASE_TAG)' marketplace-revision-release.yaml - name: Update Release Notes in marketplace-revision-release.yaml env: RELEASE_NOTES: ${{ github.event.release.body }} run: | - yq -i '.ChangeSet[].DetailsDocument.Version.ReleaseNotes = "$RELEASE_NOTES"' marketplace-revision-release.yaml + yq -i '.ChangeSet[].DetailsDocument.Version.ReleaseNotes = env(RELEASE_NOTES)' marketplace-revision-release.yaml # Generate ClientRequestToken # See https://docs.aws.amazon.com/marketplace/latest/APIReference/API_StartChangeSet.html @@ -161,7 +161,7 @@ jobs: env: TOKEN: ${{ steps.custom_token.outputs.client_request_token }} run: | - yq -i '.ClientRequestToken = "$TOKEN"' marketplace-revision-release.yaml + yq -i '.ClientRequestToken = env(TOKEN)' marketplace-revision-release.yaml # Generate DeliveryOptions # Delivery options are ECS(-Anywhere), EKS(-Anywhere), and Bedrock Agentcore diff --git a/marketplace-revision-release.yaml b/marketplace-revision-release.yaml index 411b441..d0caaab 100644 --- a/marketplace-revision-release.yaml +++ b/marketplace-revision-release.yaml @@ -14,8 +14,6 @@ ChangeSet: } ChangeSetName: '' ClientRequestToken: '' -# Set to VALIDATE to test request before applying changes. Default is APPLY. -Intent: 'VALIDATE' ChangeSetTags: - Key: 'Release' Value: ''