ChatGPT-Next-Web/.github/workflows/issue-translator.yml
Cedric Willekens 99260cd47a Fix gha smells
- Avoid incorrectly indented workflows
- Prevent running issue/PR actions on forks
- Define permissions for workflows with external actions
- Use commit hash instead of tags for action versions
2024-05-21 15:27:25 +02:00

19 lines
502 B
YAML

name: Issue Translator
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'ChatGPTNextWeb/ChatGPT-Next-Web'
permissions:
issues: write
steps:
- uses: usthe/issues-translate-action@b41f55ddc81d7d54bd542a4f289fe28ec081898e # v2.7
with:
IS_MODIFY_TITLE: false
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically.