diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a843768..584c0e65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,9 +18,9 @@ generate_git-log: script: - if (( `grep git-log.html ./public/index.html | wc -l` == 0 )); then sed -i '/
/ a 更新记录' ./public/index.html; echo "添加更新记录链接"; fi; - echo "最近的100个提交记录" - - echo "" > ./public/git-log.html
+ - echo "" > ./public/git-log.html
- "git log -100 --pretty=format:'%ad : %s' >> ./public/git-log.html"
- - echo "" >> ./public/git-log.html
+ - echo "" >> ./public/git-log.html
- echo "处理 git-log.html 结束"
artifacts:
paths: