From f77b0aa030e917451d404bc57f941f1c118e846f Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Fri, 21 Mar 2025 17:47:14 +0100 Subject: [PATCH] fix(ci): GovCloud formatting change --- .github/workflows/layers_govcloud.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/layers_govcloud.yml b/.github/workflows/layers_govcloud.yml index f8d23f1ec..cbb2e36d3 100644 --- a/.github/workflows/layers_govcloud.yml +++ b/.github/workflows/layers_govcloud.yml @@ -101,16 +101,11 @@ jobs: - name: Create Layer id: create-layer run: | - cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{ - "LayerName": "AWSLambdaPowertoolsTypeScriptV2", - "Description": .Description, - "CompatibleRuntimes": .CompatibleRuntimes, - "LicenseInfo": .LicenseInfo - }' > input.json + cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{"LayerName": "AWSLambdaPowertoolsTypeScriptV2", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "LicenseInfo": .LicenseInfo}' > input.json LAYER_VERSION=$(aws --region us-gov-west-1 lambda publish-layer-version \ --zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \ - --cli-input-json file://./input.json + --cli-input-json file://./input.json \ --query 'Version' \ --output text) @@ -166,16 +161,11 @@ jobs: - name: Create Layer id: create-layer run: | - cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{ - "LayerName": "AWSLambdaPowertoolsTypeScriptV2", - "Description": .Description, - "CompatibleRuntimes": .CompatibleRuntimes, - "LicenseInfo": .LicenseInfo - }' > input.json + cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{"LayerName": "AWSLambdaPowertoolsTypeScriptV2", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "LicenseInfo": .LicenseInfo}' > input.json LAYER_VERSION=$(aws --region us-gov-west-1 lambda publish-layer-version \ --zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \ - --cli-input-json file://./input.json + --cli-input-json file://./input.json \ --query 'Version' \ --output text)