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

fix `issue` is not a valid event name

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