Update formatting of yaml and fix inplace commands for yq in github action (#107)

This commit is contained in:
Harold Spencer Jr. authored and GitHub committed 2025-10-06 11:52:29 -07:00
1 parent ee7393f5e1
commit 5b506f0466
2 files changed
+26 -24

No files matched your search

+2 -2
View File
@@ -141,9 +141,9 @@ jobs:
env:
IMAGE_RELEASE_TAG: ${{ steps.bump-version.outputs.tag }}
run: |
yq -i '(.ChangeSet[].EntityTags | select(.Key == "Release") | .Value) = "$IMAGE_RELEASE_TAG"' marketplace-revision-release.yaml
yq -i '(.ChangeSet[].EntityTags | ( .[] | select(.Key == "Release") ) | .Value) = "$IMAGE_RELEASE_TAG"' marketplace-revision-release.yaml
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 '(.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
- name: Update Release Notes in marketplace-revision-release.yaml
+24 -22
View File
@@ -1,30 +1,32 @@
---
Catalog: 'AWSMarketplace'
ChangeSet:
- ChangeType: 'AddDeliveryOptions'
Entity:
Type: 'ContainerProduct@1.0'
Identifier: 'prod-ixigokshzjrpw@41'
EntityTags:
- ChangeType: 'AddDeliveryOptions'
Entity:
Type: 'ContainerProduct@1.0'
Identifier: 'prod-ixigokshzjrpw@41'
EntityTags:
- Key: 'Release'
Value: ''
- Key: 'CostEntity'
Value: 'SEZC'
- Key: 'IPGroup'
Value: 'KY BAT Ledger Service'
DetailsDocument: {
"Version": {
"ReleaseNotes": "",
"VersionTitle": ""
},
"DeliveryOptions": ""
}
ChangeSetName: ''
ClientRequestToken: ''
# Set to VALIDATE to test request before applying changes. Default is APPLY.
Intent: 'VALIDATE'
ChangeSetTags:
- Key: 'Release'
Value: ''
- Key: 'CostEntity'
Value: 'SEZC'
- Key: 'IPGroup'
Value: 'KY BAT Ledger Service'
DetailsDocument: {
"Version": {
"ReleaseNotes": "",
"VersionTitle": ""
},
"DeliveryOptions": ""
}
ChangeSetName: ''
ClientRequestToken: ''
Intent: 'VALIDATE' # Set to VALIDATE to test request before applying changes. Default is APPLY.
ChangeSetTags:
- Key: 'Release'
Value: ''
- Key: 'CostEntity'
Value: 'SEZC'
- Key: 'IPGroup'
Value: 'KY BAT Ledger Service'