Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GT Translate
on:
push:
branches: [main]

jobs:
translate:
runs-on: ubuntu-latest
if: ${{ github.event.head_commit.author.name != 'github-actions[bot]' && !contains(github.event.head_commit.message, 'gt-translate/') }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4

- uses: generaltranslation/translate@v0
with:
gt_api_key: ${{ secrets.GT_API_KEY }}
gt_project_id: ${{ secrets.GT_PROJECT_ID }}
inline: false
config: 'gt.config.json'
pr_branch: 'gt-translate/${{ github.ref_name }}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
package-lock.json
.idea/
.vscode/
.env
Loading