Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Sep 4, 2023
1 parent 5e5ca2c commit e00f333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const asyncFunc = async orgName => {
/** 生成图片 */
const outputPng = async contributors => {
const avatars = contributors.map(i => i.avatar);
// https://github.com/puppeteer/puppeteer/issues/10729
const browser = await puppeteer.launch({
headless: true,
executablePath: `/usr/bin/google-chrome`,
Expand Down Expand Up @@ -219,11 +220,11 @@ const Action = async payload => {
return blobResponse.data.sha;
};

const pngSHA = await createBlob(
const jsonSHA = await createBlob(
Buffer.from(JSON.stringify(contributors)).toString("base64"),
"base64"
);
const jsonSHA = await createBlob(imageContent.toString("base64"), "base64");
const pngSHA = await createBlob(imageContent.toString("base64"), "base64");

// 3. 创建一个定义了文件夹结构的树
const createTree = async (baseTreeSHA, blobs) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

0 comments on commit e00f333

Please sign in to comment.