Skip to content

Commit

Permalink
chore: add github action to auto translate issue title
Browse files Browse the repository at this point in the history
  • Loading branch information
antv committed Aug 23, 2024
1 parent 8dc9e58 commit bf97efc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/issue_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Translate Issue Title

on:
issues:
types: [opened, edited]

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Translate
uses: Aarebecca/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_TRANSLATE_KEY: ${{ secrets.AZURE_TRANSLATE_KEY }}
AZURE_TRANSLATE_ENDPOINT: 'https://api.cognitive.microsofttranslator.com'
AZURE_TRANSLATE_LOCATION: 'eastus'
AZURE_TRANSLATE_TARGET: 'en'

0 comments on commit bf97efc

Please sign in to comment.