Skip to content

Commit a9798c6

Browse files
author
Luke Lin
committed
[skip ci] add git pull
1 parent 53f7df7 commit a9798c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

leetcode_generate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,15 @@ def write_readme(self):
598598

599599
def push_to_github(self):
600600
strdate = datetime.datetime.now().strftime('%Y-%m-%d')
601+
cmd_git_pull = 'git pull'
601602
cmd_git_add = 'git add .'
602603
cmd_git_commit = 'git commit -m "[skip ci] update at {date}"'.format(
603604
date=strdate
604605
)
605606
cmd_git_push = 'git push -u origin {branch}'.format(
606607
branch=REPO_BRANCH
607608
)
609+
os.system(cmd_git_pull)
608610
os.system(cmd_git_add)
609611
os.system(cmd_git_commit)
610612
os.system(cmd_git_push)

0 commit comments

Comments
 (0)