提交 223c7608 编写于 作者: sinat_25235033's avatar sinat_25235033

fix `issue` is not a valid event name

上级 d9ec1640
name: 'build-test' name: 'build-test'
on: # rebuild any PRs and main branch changes on: # rebuild any PRs and main branch changes
issue_comment: issue_comment:
issue: issues:
branches: branches:
- main - main
- 'releases/*' - 'releases/*'
......
...@@ -13,7 +13,7 @@ The action for translating non-English issues comment content to English. ...@@ -13,7 +13,7 @@ The action for translating non-English issues comment content to English.
```` ````
name: 'issue-comment-translator' name: 'issue-comment-translator'
on: # support issue_comment issue on: # support issue_comment issue
issue: issues:
issue_comment: issue_comment:
branches: branches:
- main - main
...@@ -43,7 +43,7 @@ jobs: ...@@ -43,7 +43,7 @@ jobs:
```` ````
name: 'issue-comment-translator' name: 'issue-comment-translator'
on: # support issue_comment issue on: # support issue_comment issue
issue: issues:
issue_comment: issue_comment:
branches: branches:
- main - main
......
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
...@@ -8,7 +8,7 @@ let franc = require('franc-min') ...@@ -8,7 +8,7 @@ let franc = require('franc-min')
async function run(): Promise<void> { async function run(): Promise<void> {
try { try {
if ( if (
(github.context.eventName !== 'issue_comment' && github.context.eventName != 'issue') || (github.context.eventName !== 'issue_comment' && github.context.eventName != 'issues') ||
github.context.payload.action !== 'created' github.context.payload.action !== 'created'
) { ) {
core.setFailed( core.setFailed(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册