From 8852491b37bbc16a88dc84d7fd5d0c4110459422 Mon Sep 17 00:00:00 2001 From: SouthFox-D Date: Tue, 5 Apr 2022 00:06:30 +0800 Subject: [PATCH] posts: update post --- source/_posts/2022/03/Github-Actions-浅尝辄止.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/2022/03/Github-Actions-浅尝辄止.md b/source/_posts/2022/03/Github-Actions-浅尝辄止.md index e9fe6cd..ac0556c 100644 --- a/source/_posts/2022/03/Github-Actions-浅尝辄止.md +++ b/source/_posts/2022/03/Github-Actions-浅尝辄止.md @@ -223,10 +223,10 @@ jobs: run: | rm -rf .git #删除 Hexo 的 .git 文件夹防止后续冲突 git clone https://github.com/SouthFox-D/blog_img.git blog_img #备份仓库 - cp -frp newimg/* blog_img/ #合并文件夹 + cp -f newimg/* blog_img/ #合并文件夹 cd blog_img git add . - git diff --exit-code || git commit -am "Auto backup" #防止报错 + git commit -am "Auto backup" || echo "Nothing to push" #防止报错 git push --force https://$DEPLOY_KEY@github.com/SouthFox-D/blog_img.git #根据实际情况而定 ```