近两天,个人博客使用github action自动部署有问题
关键报错如下:

1
fatal: 'main' is already used by worktree at '/home/runner/work/xxxx/xxxx'

image.png

临时解决方案:
在github action最后的deploy阶段修改为
JamesIves/github-pages-deploy-action@v4.6.0

最新更新:
fix已经经PR_1591merge进了dev分支。上述改动不需要修改了

1
2
- name: 部署到Github
uses: JamesIves/github-pages-deploy-action@v4

详情可参考:
https://github.com/JamesIves/github-pages-deploy-action/discussions/1589

最后附上,个人博客网站:Southblock’Blog,内容更多,更新,欢迎参观。