From a3041c26a874e77c1672fb722c9623f3a29f1ddf Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Tue, 1 Sep 2026 11:46:10 +0200 Subject: [PATCH] chore(ci): omit null layer metadata fields (#8416) 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. Closes #8417 Refs #7975 --- .github/workflows/layers_partitions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/layers_partitions.yml b/.github/workflows/layers_partitions.yml index 3d6246e5197..f6284aeb461 100644 --- a/.github/workflows/layers_partitions.yml +++ b/.github/workflows/layers_partitions.yml @@ -159,7 +159,7 @@ jobs: - name: Create Layer id: create-layer run: | - cat '${{ matrix.layer }}-${{ matrix.arch }}.json' | jq '{"LayerName": "${{ matrix.layer }}-${{ matrix.arch }}", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "CompatibleArchitectures": .CompatibleArchitectures, "LicenseInfo": .LicenseInfo}' > input.json + 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 LAYER_VERSION=$(aws --region ${{ matrix.region}} lambda publish-layer-version \ --zip-file 'fileb://./${{ matrix.layer }}-${{ matrix.arch }}.zip' \