Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Sep 4, 2023
1 parent f6173d4 commit 5e5ca2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const Action = async payload => {
{ path: pngPath, sha: pngSHA },
{ path: jsonPath, sha: jsonSHA }
]);
console.log('treeSHA', treeSHA);
console.log("treeSHA", treeSHA);

// 4. 创建提交
const createCommit = async treeSHA => {
Expand All @@ -266,7 +266,7 @@ const Action = async payload => {
const newCommitSHA = await createCommit(treeSHA);

// 5. 更新分支引用
await githubAxios.patch(`/git/refs/heads/${"dev"}`, {
await Axios.patch(`/git/refs/heads/${"dev"}`, {
// fixme 这边应该用传入的branch变量
sha: newCommitSHA
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

0 comments on commit 5e5ca2c

Please sign in to comment.