mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-31 01:50:22 +09:00

- 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
19 lines
502 B
YAML
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.
|