Skip to content

Commit

Permalink
fix: commit log
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceYu committed Dec 1, 2024
1 parent de7f612 commit 80908bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ function handleUpdate() {
* 提交修改到 git 仓库
*/
function handleCommit() {
utils.log('完成抓取,即将上传')

git.add('./*')
.commit('更新: ' + newData.titles.join('、'))
.push(['-u', 'origin', 'master'], () => utils.logSuccess('完成抓取和上传!'))
Expand Down Expand Up @@ -105,6 +103,7 @@ function handleFeed() {
fs.outputJsonSync(LINKS_PATH, linksJson)
await writemd(newData, linksJson)
await createFeed(linksJson)
utils.log('完成抓取,即将上传')
if (!utils.WORKFLOW) {
handleCommit()
}
Expand Down

0 comments on commit 80908bb

Please sign in to comment.