记录关于GitHub Action的坑

TO BE DONE…

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