1
learningman 2022-03-09 17:45:34 +08:00 via Android 1
可以,github actions
|
2
Rwing 2022-03-09 18:01:15 +08:00 1
可以的,可以参见我这个 repo 的 github action 配置
https://github.com/Rwing/debian-benchmarks-game-visualization/blob/main/.github/workflows/blank.yml |
3
0o0O0o0O0o 2022-03-09 18:06:58 +08:00 1
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com 然后 push 就行 或者用 github api ,repos.createOrUpdateFileContents ,本仓库不需要申请 PAT ,会自动分配一个 github.token |
4
swulling 2022-03-09 18:18:51 +08:00 1
会,但是别放到同一个分支下,那就成死循环了。
一般是 main 分支放 markdown ,然后 action 发布到 gh-pages 分支。 |
5
shadows 2022-03-09 19:55:34 +08:00
@swulling 用 workflow 自动生成的 GITHUB_TOKEN 不会死循环:
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur. |