Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verified commit
name: Verified commit modBy Yui-KITAMURA
description: GitHub Action to create verified commits
inputs:
files:
Expand All @@ -23,7 +23,7 @@ outputs:
commit-sha:
description: SHA of created commit
runs:
using: node12
using: node16
main: dist/index.js
branding:
icon: git-commit
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3660,7 +3660,7 @@ function wrap(protocols) {
// Default settings
var exports = {
maxRedirects: 21,
maxBodyLength: 10 * 1024 * 1024,
maxBodyLength: 100 * 1024 * 1024,
};

// Wrap each protocol
Expand Down
2 changes: 1 addition & 1 deletion lib/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Commit extends Resource {
message: this.message,
tree: this.tree.sha,
parents: this.parents,
}
},
);

this.sha = response.data.sha;
Expand Down
2 changes: 2 additions & 0 deletions lib/github-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const github = axios.create({
authorization: `bearer ${process.env.GH_TOKEN}`,
"user-agent": `${pkg.name}/${pkg.version}`,
},
maxBodyLength: 100000000, //100MB GitHub FileSizeLimit
maxContentLength: 100000000,
});

export default github;
7 changes: 6 additions & 1 deletion lib/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class Tree extends Resource {
// Save all the blobs
for await (const blob of this.blobs) {
await blob.save();
this.debug(String(blob.stream.readableLength));
}

// Save the tree
Expand All @@ -34,7 +35,11 @@ export class Tree extends Resource {
};
}),
base_tree: this.parentOid,
}
},
{
maxBodyLength: 100000000, //100MB GitHub FileSizeLimit
maxContentLength: 100000000,
}
);

this.sha = response.data.sha;
Expand Down