diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 584c0e65..0caace60 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ before_script: generate_git-log: stage: gen_git-log script: - - if (( `grep git-log.html ./public/index.html | wc -l` == 0 )); then sed -i '// a 更新记录' ./public/index.html; echo "添加更新记录链接"; fi; + - 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
     - "git log -100 --pretty=format:'%ad : %s' >> ./public/git-log.html"