Skip to content

Commit 329ca06

Browse files
authored
chore(build): Only upload lambda layer when releasing (#5208)
This changes our GHA workflow to only zip and upload the lambda layer when the uploaded artifact is needed for a release. (This matches the behavior of other uploaded artifacts.)
1 parent 7c521e3 commit 329ca06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ jobs:
132132
job_pack_aws_lambda_layer:
133133
name: Pack and Upload AWS Lambda Layer
134134
needs: [job_get_metadata, job_build]
135+
# only upload the zipped layer file if we're about to release
136+
if: startsWith(github.ref, 'refs/heads/release/')
135137
runs-on: ubuntu-latest
136138
steps:
137139
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})

0 commit comments

Comments
 (0)