Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Matrosov committed Aug 17, 2022
1 parent 93be6fe commit 9bbe056
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yc-actions-yc-sls-function",
"version": "2.2.0",
"version": "2.3.0",
"description": "GitHub Action to deploy Serverless Function to Yandex Cloud.",
"main": "lib/main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ async function createFunctionVersion(
objectName: bucketObjectName,
});
} else {
if (fileContents.length > parseMemory('3.5Mb')) {
// 3.5 mb
if (fileContents.length > 3670016) {
throw Error(`Zip file is too big: ${fileContents.length} bytes. Provide bucket name.`);
}
request.content = fileContents;
Expand Down

0 comments on commit 9bbe056

Please sign in to comment.