记录关于GitHub Action的坑
目录
TO BE DONE…
Q: Action failed with “The process ‘/usr/bin/git’ failed with exit code 128”
A:
issue 742 of the
peaceiris/actions-gh-pages
GitHub Action mentions:
I had to change these settings under Settings-Action-General. Maybe worth calling out in docs:
- Workflow Permissions: Rean (sic) and Write
- Allow GitHub Actions to approve pull requests
https://github.com/peaceiris/actions-gh-pages/issues/742#issuecomment-1114440714
在Action中想使用TOKEN去push的话需要在Settings
-Action
-General
.
- 勾选
Workflow permissions
中的Read and write permissions
- 勾选
Allow GitHub Actions to create and approve pull requests