Skip to content

Commit 91971e3

Browse files
authored
Update release-lambda.yml (#158)
*Description of changes:* Lambda container users can download the layer artifact from assets. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent fa9a211 commit 91971e3

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/release-lambda.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,24 +174,22 @@ jobs:
174174
- name: generate tf layer
175175
working-directory: ${{ env.LAYER_NAME }}
176176
run: |
177-
echo "locals {" >> ../layer.tf
178-
echo " sdk_layer_arns = {" >> ../layer.tf
177+
echo "locals {" >> ../layer_arns.tf
178+
echo " sdk_layer_arns = {" >> ../layer_arns.tf
179179
for file in *
180180
do
181181
read arn < $file
182-
echo " \""$file"\" = \""$arn"\"" >> ../layer.tf
182+
echo " \""$file"\" = \""$arn"\"" >> ../layer_arns.tf
183183
done
184184
cd ..
185-
echo " }" >> layer.tf
186-
echo "}" >> layer.tf
187-
terraform fmt layer.tf
188-
cat layer.tf
189-
- name: upload layer tf file
190-
uses: actions/upload-artifact@v4
185+
echo " }" >> layer_arns.tf
186+
echo "}" >> layer_arns.tf
187+
terraform fmt layer_arns.tf
188+
cat layer_arns.tf
189+
- name: download layer.zip
190+
uses: actions/download-artifact@v4
191191
with:
192-
name: layer.tf
193-
path: layer.tf
194-
192+
name: layer.zip
195193
- name: Get commit hash
196194
id: commit
197195
run: |
@@ -216,6 +214,6 @@ jobs:
216214
--notes-file release_notes.md \
217215
--draft \
218216
"lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
219-
lambda-layer/terraform/lambda/layer.tf
217+
layer_arns.tf layer.zip
220218
echo Removing release_notes.md ...
221219
rm -f release_notes.md

0 commit comments

Comments
 (0)