Skip to content

Commit 57d6344

Browse files
authored
chore(ci): fix workflow GovCloud formatting (#3761)
1 parent b44b1eb commit 57d6344

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/layers_govcloud.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,11 @@ jobs:
101101
- name: Create Layer
102102
id: create-layer
103103
run: |
104-
cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{
105-
"LayerName": "AWSLambdaPowertoolsTypeScriptV2",
106-
"Description": .Description,
107-
"CompatibleRuntimes": .CompatibleRuntimes,
108-
"LicenseInfo": .LicenseInfo
109-
}' > input.json
104+
cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{"LayerName": "AWSLambdaPowertoolsTypeScriptV2", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "LicenseInfo": .LicenseInfo}' > input.json
110105
111106
LAYER_VERSION=$(aws --region us-gov-west-1 lambda publish-layer-version \
112107
--zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \
113-
--cli-input-json file://./input.json
108+
--cli-input-json file://./input.json \
114109
--query 'Version' \
115110
--output text)
116111
@@ -166,16 +161,11 @@ jobs:
166161
- name: Create Layer
167162
id: create-layer
168163
run: |
169-
cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{
170-
"LayerName": "AWSLambdaPowertoolsTypeScriptV2",
171-
"Description": .Description,
172-
"CompatibleRuntimes": .CompatibleRuntimes,
173-
"LicenseInfo": .LicenseInfo
174-
}' > input.json
164+
cat AWSLambdaPowertoolsTypeScriptV2.json | jq '{"LayerName": "AWSLambdaPowertoolsTypeScriptV2", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "LicenseInfo": .LicenseInfo}' > input.json
175165
176166
LAYER_VERSION=$(aws --region us-gov-west-1 lambda publish-layer-version \
177167
--zip-file fileb://./AWSLambdaPowertoolsTypeScriptV2.zip \
178-
--cli-input-json file://./input.json
168+
--cli-input-json file://./input.json \
179169
--query 'Version' \
180170
--output text)
181171

0 commit comments

Comments
 (0)