fix: fix gitlab-ci.yml

This commit is contained in:
shizhendong
2021-06-25 10:35:06 +08:00
parent 1c309b2242
commit 10109f5c95

View File

@@ -20,9 +20,9 @@ generate_git-log:
script:
- if (( `grep git-log.html ./public/index.html | wc -l` == 0 )); then sed -i '/<body>/ a <a style="position:fixed;bottom:20px;left:40px;z-index:999;color:#000;" target="_blank" href="./git-log.html">更新记录</a>' ./public/index.html; echo "添加更新记录链接"; fi;
- echo "最近的100个提交记录"
- echo "<pre>" > ./public/git-log.html
- echo "<!DOCTYPE html><html><head><meta charset='utf-8'></head><body><pre>" > ./public/git-log.html
- "git log -100 --pretty=format:'%ad : %s' >> ./public/git-log.html"
- echo "</pre>" >> ./public/git-log.html
- echo "</pre></body></html>" >> ./public/git-log.html
- echo "处理 git-log.html 结束"
artifacts:
paths: