ci: create translate.yml (#3699)

* Create translate.yml

* Update .github/workflows/translate.yml

* Update translate.yml
pull/3717/head
xrkffgg 2021-02-25 13:37:49 +08:00 committed by GitHub
parent 7303e9ae86
commit 765b420651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
.github/workflows/translate.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Translation Helper
on:
pull_request_target:
types: [opened]
issues:
types: [opened]
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: issue
if: github.event_name == 'issues'
uses: actions-cool/translation-helper@v1.1.0
- name: pr
if: github.event_name == 'pull_request_target'
uses: actions-cool/translation-helper@v1.1.0
with:
translate-body: false