docs: add token trigger note

This commit is contained in:
xrkffgg
2021-02-01 10:03:25 +08:00
parent 321da097ae
commit 8acd7991df
2 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ When an action is set, such as adding a label `x1` to an issue, Actions will aut
But if this is done by `GitHub Actions bot` (that is, the token in the actions is not passed, or the default `token: ${{ secrets.GITHUB_TOKEN }}` is used), the actions of label `x2` will not be triggered.
ref: [GitHub docs](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token)
## `assignees` scope
- The owner or collaborator of the warehouse, if there is an organization, including members

View File

@@ -39,6 +39,8 @@ with:
但如果这个是由 `GitHub Actions bot` 完成的(即 actions 中 token 不传,或使用默认 `token: ${{ secrets.GITHUB_TOKEN }}`),则不会触发 label `x2` 的 Actions。
ref: [GitHub docs](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token)
## `assignees` 范围
- 仓库的所有者或协作者,若有组织,包括成员