Skip to content

Commit 29d3f7f

Browse files
authored
chore(ci): fix compat runtimes in govcloud layer creation (#3759)
1 parent dafa496 commit 29d3f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .github/workflows/layers_govcloud.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
LAYER_VERSION=$(aws --region us-gov-east-1 lambda publish-layer-version \
105105
--layer-name AWSLambdaPowertoolsTypeScriptV2 \
106106
--zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \
107-
--compatible-runtimes "$(jq -r '.CompatibleRuntimes[0]' 'AWSLambdaPowertoolsTypeScriptV2.json')" \
107+
--compatible-runtimes "$(echo \"$(jq -r '.CompatibleRuntimes | join(" ")' 'AWSLambdaPowertoolsTypeScriptV2.json')\" | sed -e "s/ /\" \"/g")" \
108108
--license-info "MIT-0" \
109109
--description "$(jq -r '.Description' 'AWSLambdaPowertoolsTypeScriptV2.json')" \
110110
--query 'Version' \
@@ -161,7 +161,7 @@ jobs:
161161
LAYER_VERSION=$(aws --region us-gov-west-1 lambda publish-layer-version \
162162
--layer-name AWSLambdaPowertoolsTypeScriptV2 \
163163
--zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \
164-
--compatible-runtimes "$(jq -r '.CompatibleRuntimes[0]' 'AWSLambdaPowertoolsTypeScriptV2.json')" \
164+
--compatible-runtimes "$(echo \"$(jq -r '.CompatibleRuntimes | join(" ")' 'AWSLambdaPowertoolsTypeScriptV2.json')\" | sed -e "s/ /\" \"/g")" \
165165
--license-info "MIT-0" \
166166
--description "$(jq -r '.Description' 'AWSLambdaPowertoolsTypeScriptV2.json')" \
167167
--query 'Version' \

0 commit comments

Comments
 (0)