Skip to content

Commit 24d6cee

Browse files
committed
fix(ci): omit null layer metadata fields
Placeholder layer versions can omit optional metadata such as LicenseInfo. Remove null values from the publish request so the AWS CLI accepts these versions during partition deployment. Refs #7975
1 parent a39e101 commit 24d6cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/layers_partitions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
- name: Create Layer
160160
id: create-layer
161161
run: |
162-
cat '${{ matrix.layer }}-${{ matrix.arch }}.json' | jq '{"LayerName": "${{ matrix.layer }}-${{ matrix.arch }}", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "CompatibleArchitectures": .CompatibleArchitectures, "LicenseInfo": .LicenseInfo}' > input.json
162+
jq '{"LayerName": "${{ matrix.layer }}-${{ matrix.arch }}", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "CompatibleArchitectures": .CompatibleArchitectures, "LicenseInfo": .LicenseInfo} | with_entries(select(.value != null))' '${{ matrix.layer }}-${{ matrix.arch }}.json' > input.json
163163
164164
LAYER_VERSION=$(aws --region ${{ matrix.region}} lambda publish-layer-version \
165165
--zip-file 'fileb://./${{ matrix.layer }}-${{ matrix.arch }}.zip' \

0 commit comments

Comments
 (0)